定制 aclyte/flysystem-aws-s3-v3 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aclyte/flysystem-aws-s3-v3

Composer 安装命令:

composer require aclyte/flysystem-aws-s3-v3

包简介

AWS S3 filesystem adapter for Flysystem with PHP 7.4–8.4 support (Flysystem 2.x and 3.x).

README 文档

README

Packagist Version Packagist Downloads License

Fork of league/flysystem-aws-s3-v3 with extended PHP compatibility.

  • PHP 7.4 – 8.4
  • Flysystem 2.x (PHP 7.4+)
  • Flysystem 3.x (PHP 8.0+)

Installation

composer require aclyte/flysystem-aws-s3-v3

PHP version notes

PHP version Flysystem AWS SDK
7.4 2.x 3.337.x (last release supporting PHP 7.4)
8.0 – 8.3 2.x or 3.x latest compatible
8.4 3.x recommended latest compatible

On PHP 7.4, Composer may resolve an older aws/aws-sdk-php release. That is expected.

Usage

Using Aws\S3\S3Client:

<?php

use Aws\S3\S3Client;
use League\Flysystem\AwsS3V3\AwsS3V3Adapter;
use League\Flysystem\Filesystem;

require __DIR__ . '/vendor/autoload.php';

$client = new S3Client([
    'credentials' => [
        'key'    => 'your-key',
        'secret' => 'your-secret',
    ],
    'region' => 'your-region',
    'version' => 'latest',
]);

$adapter = new AwsS3V3Adapter($client, 'your-bucket-name');
$filesystem = new Filesystem($adapter);

Using Aws\S3\S3MultiRegionClient (no region required):

<?php

use Aws\S3\S3MultiRegionClient;
use League\Flysystem\AwsS3V3\AwsS3V3Adapter;
use League\Flysystem\Filesystem;

require __DIR__ . '/vendor/autoload.php';

$client = new S3MultiRegionClient([
    'credentials' => [
        'key'    => 'your-key',
        'secret' => 'your-secret',
    ],
    'version' => 'latest',
]);

$adapter = new AwsS3V3Adapter($client, 'your-bucket-name');
$filesystem = new Filesystem($adapter);

Publishing on Packagist

  1. Push this repository to GitHub (public).
  2. Create a release tag, for example 1.1.0:
    git tag -a 1.1.0 -m "PHP 7.4–8.4 compatibility"
    git push origin 1.1.0
  3. Register the package at packagist.org:
    • Repository URL: https://github.com/aclyte/flysystem-aws-s3-v3
  4. Enable the Packagist GitHub hook so new tags are picked up automatically.

Note: This repository may contain legacy upstream git tags. Packagist imports all tags as versions. For a clean version history, publish only tags that match this fork (for example 1.1.x).

License

MIT. See LICENSE.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 219
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固