league/flysystem-aws-s3-v2

This package is abandoned and no longer maintained. The author suggests using the league/flysystem-aws-s3-v3 package instead.

Flysystem adapter for AWS S3 SDK v2

1.0.3 2015-10-15 15:55 UTC

This package is auto-updated.

Last update: 2020-08-09 11:27:49 UTC


README

Author Build Status Coverage Status Quality Score Software License Packagist Version Total Downloads

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);