palmatesolutions / flysystem-akeneo-aws3v3
Flysystem adapter for the Akeneo AWS S3/DO SDK v3.x Connector
2.0.1
2020-11-26 06:01 UTC
Requires
- php: >=5.5.0
- aws/aws-sdk-php: ^3.20.0
- league/flysystem: ^1.0.40
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: ~1.0.1
- phpspec/phpspec: ^2.0.0
- 2.x-dev
- 2.0.1
- 2.0.0
- 2.0.0-RC1
- 2.0.0-beta.3
- 2.0.0-beta.2
- 2.0.0-beta.1
- 2.0.0-alpha.4
- 2.0.0-alpha.2
- 2.0.0-alpha.1
- dev-master / 1.0.x-dev
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2025-03-26 15:32:40 UTC
README
This is a Flysystem adapter for the League\Flysystem\AwsS3v3.
Installation
composer require palmatesolutions/flysystem-akeneo-aws3v3:"^1.0"
Bootstrap
Using standard Aws\S3\S3Client
:
<?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'); $filesystem = new Filesystem($adapter);
or using Aws\S3\S3MultiRegionClient
which does not require to specify the region
parameter:
<?php use Aws\S3\S3MultiRegionClient; use League\Flysystem\AwsS3v3\AwsS3Adapter; use League\Flysystem\Filesystem; include __DIR__ . '/vendor/autoload.php'; $client = new S3MultiRegionClient([ 'credentials' => [ 'key' => 'your-key', 'secret' => 'your-secret' ], 'version' => 'latest|version', ]); $adapter = new AwsS3Adapter($client, 'your-bucket-name'); $filesystem = new Filesystem($adapter);