joolanders/flysystem-aws-s3-small

Flysystem adapter for S3 without using the full AWS SDK

1.0.0 2018-11-27 16:22 UTC

This package is not auto-updated.

Last update: 2024-12-19 21:24:45 UTC


README

This is a Flysystem adapter for s3 without the need for the huge AWS PHP SDK

Installation

composer require joolanders/flysystem-aws-s3-small

Bootstrap

<?php

include __DIR__ . '/vendor/autoload.php';

$configuration = new \Akeeba\Engine\Postproc\Connector\S3v4\Configuration(
    'your-key',
    'your-secret',
    'V2|V4', // optional
    'your-region' // optional
);

$connector = new \Akeeba\Engine\Postproc\Connector\S3v4\Connector($configuration);
$adapter = new \Joolanders\Flysystem\S3Small\S3SmallAdapter($connector, 'your-bucket');
$filesystem = new \League\Flysystem\Filesystem($adapter);