DigitalOcean Spaces docs

This commit is contained in:
Milos Stojanovic
2019-06-24 16:10:59 +02:00
parent 56a9d60d5e
commit 058c6a66cc
3 changed files with 34 additions and 3 deletions

View File

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

View File

@@ -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');
},
],
],
```

View File

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