janhartigan / temp-flysystem-s3-adapter
Flysystem adapter for the AWS S3 SDK v3.x
1.0.7
2015-11-05 00:56 UTC
Requires
- php: >=5.5.0
- aws/aws-sdk-php: ^3.0.0
- league/flysystem: ~1.0
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: ~1.0.1
- phpspec/phpspec: ^2.0.0
This package is not auto-updated.
Last update: 2024-11-13 18:49:28 UTC
README
This is a Flysystem adapter for the aws-sdk-php v3.
Installation
composer require league/flysystem-aws-s3-v3
Bootstrap
<?php use Aws\S3\S3Client; use League\Flysystem\AwsS3v3\AwsS3Adapter; use League\Flysystem\Filesystem; include __DIR__ . '/vendor/autoload.php'; $client = new S3Client([ 'credentials' => [ 'key' => 'your-key', 'secret' => 'your-secret' ], 'region' => 'your-region', 'version' => 'latest|version', ]); $adapter = new AwsS3Adapter($client, 'your-bucket-name');