diff --git a/README.md b/README.md index 3936018..25334c2 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ This is read-only demo with guest account enabled. ## Features & Goals -- Multiple storage adapters (Local, FTP, S3, Dropbox and many others via [Flysystem](https://github.com/thephpleague/flysystem)) +- Multiple storage adapters (Local, FTP, Amazon S3, Dropbox and many others via [Flysystem](https://github.com/thephpleague/flysystem)) - Multiple auth adapters with roles and permissions (Store users in json file or database) - Multiple session adapters (Native File, Pdo, MongoDB, Memcached and others via [Symfony](https://github.com/symfony/symfony/tree/master/src/Symfony/Component/HttpFoundation/Session/Storage/Handler)) - Single page front-end (built with [Vuejs](https://github.com/vuejs/vue), [Bulma](https://github.com/jgthms/bulma) and [Buefy](https://github.com/buefy/buefy)) diff --git a/docs/configuration/storage.md b/docs/configuration/storage.md index e4904d8..aa15d74 100644 --- a/docs/configuration/storage.md +++ b/docs/configuration/storage.md @@ -5,7 +5,7 @@ currentMenu: storage ## Adapters Different storage adapters are provided through the awesome [Flysystem](https://github.com/thephpleague/flysystem) library. -You can use local filesystem (default), FTP, S3, Dropbox and many others. +You can use local filesystem (default), FTP, Amazon S3, DigitalOcean Spaces, Dropbox and many others. Please check the Flysystem [docs](https://github.com/thephpleague/flysystem) for the exact setup required for each adapter. @@ -126,3 +126,34 @@ See official [documentation](https://flysystem.thephpleague.com/docs/adapter/aws ], ``` + +## DigitalOcean Spaces +You must require additional library `composer require league/flysystem-aws-s3-v3` + +The DigitalOcean Spaces API are compatible with those of S3. + +See official [documentation](https://flysystem.thephpleague.com/docs/adapter/digitalocean-spaces/) + +``` + 'Filegator\Services\Storage\Filesystem' => [ + 'handler' => '\Filegator\Services\Storage\Filesystem', + 'config' => [ + 'separator' => '/', + 'config' => [], + 'adapter' => function () { + $client = new \Aws\S3\S3Client([ + 'credentials' => [ + 'key' => '123456', + 'secret' => 'secret123456', + ], + 'region' => 'us-east-1', + 'version' => 'latest', + 'endpoint' => 'https://nyc3.digitaloceanspaces.com', + ]); + + return new \League\Flysystem\AwsS3v3\AwsS3Adapter($client, 'my-bucket-name'); + }, + ], + ], + +``` diff --git a/docs/index.md b/docs/index.md index 7290240..167d8cb 100644 --- a/docs/index.md +++ b/docs/index.md @@ -20,7 +20,7 @@ File upload supports drag&drop, progress bar, pause and resume. Upload is chunke ## Features & Goals -- Multiple storage adapters (Local, FTP, S3, Dropbox and many others via [Flysystem](https://github.com/thephpleague/flysystem)) +- Multiple storage adapters (Local, FTP, Amazon S3, Dropbox and many others via [Flysystem](https://github.com/thephpleague/flysystem)) - Multiple auth adapters with roles and permissions (Store users in json file or database) - Multiple session adapters (Native File, Pdo, MongoDB, Memcached and others via [Symfony](https://github.com/symfony/symfony/tree/master/src/Symfony/Component/HttpFoundation/Session/Storage/Handler)) - Single page front-end (built with [Vuejs](https://github.com/vuejs/vue), [Bulma](https://github.com/jgthms/bulma) and [Buefy](https://github.com/buefy/buefy))