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
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
- Push this repository to GitHub (public).
- 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 - Register the package at packagist.org:
- Repository URL:
https://github.com/aclyte/flysystem-aws-s3-v3
- Repository URL:
- 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
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-10