league / flysystem-aws-s3-v2
Flysystem adapter for AWS S3 SDK v2
Installs: 2 212 357
Dependents: 22
Suggesters: 13
Security: 0
Stars: 52
Watchers: 8
Forks: 16
Open Issues: 4
Requires
- php: >=5.4.0
- aws/aws-sdk-php: ~2.7
- league/flysystem: ~1.0
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2020-08-09 11:27:49 UTC
README
Installation
composer require league/flysystem-aws-s3-v2
Usage
use Aws\S3\S3Client; use League\Flysystem\AwsS3v2\AwsS3Adapter; use League\Flysystem\Filesystem; $client = S3Client::factory(array( 'key' => '[your key]', 'secret' => '[your secret]', 'region' => '[aws-region]', )); $adapter = new AwsS3Adapter($client, 'bucket-name', 'optional-prefix'); $filesystem = new Filesystem($adapter);