@@ -5,7 +5,7 @@ including many cloud storage providers. This bundle provides the same level of s
55cloud providers by providing corresponding adapters in the configuration.
66
77* [ AsyncAws S3] ( #asyncaws-s3 )
8- * [ AWS S3] ( #aws-s3 )
8+ * [ AWS S3] ( #aws-sdk- s3 )
99* [ DigitalOcean Spaces] ( #digitalocean-spaces )
1010* [ Scaleway Object Storage] ( #scaleway-object-storage )
1111* [ Google Cloud Storage] ( #google-cloud-storage )
@@ -15,7 +15,7 @@ cloud providers by providing corresponding adapters in the configuration.
1515### Installation
1616
1717```
18- composer require async-aws/flysystem -s3
18+ composer require league/flysystem- async-aws-s3
1919```
2020
2121### Usage
@@ -57,16 +57,6 @@ flysystem:
5757 prefix : ' optional/path/prefix'
5858` ` `
5959
60- ## DigitalOcean Spaces
61-
62- The DigitalOcean Spaces are compatible with the AWS S3 API, meaning that you can use the same configuration
63- as for a AWS storage.
64-
65- ## Scaleway Object Storage
66-
67- The Scaleway Object Storage is compatible with the AWS S3 API, meaning that you can use the same configuration
68- as for a AWS storage.
69-
7060## Google Cloud Storage
7161
7262### Installation
@@ -90,6 +80,56 @@ flysystem:
9080 prefix : ' optional/path/prefix'
9181` ` `
9282
83+ ## DigitalOcean Spaces
84+
85+ The DigitalOcean Spaces are compatible with the AWS S3 API, meaning that you can use the same configuration
86+ as for a AWS storage. For example:
87+
88+ ` ` ` yaml
89+ # config/packages/flysystem.yaml
90+
91+ services :
92+ digitalocean_spaces_client :
93+ class : ' AsyncAws\S3\S3Client'
94+ arguments :
95+ - endpoint : ' %env(DIGITALOCEAN_SPACES_ENDPOINT)%'
96+ accessKeyId : ' %env(DIGITALOCEAN_SPACES_ID)%'
97+ accessKeySecret : ' %env(DIGITALOCEAN_SPACES_SECRET)%'
98+
99+ flysystem :
100+ storages :
101+ cdn.storage :
102+ adapter : ' asyncaws'
103+ options :
104+ client : ' digitalocean_spaces_client'
105+ bucket : ' %env(DIGITALOCEAN_SPACES_BUCKET)%'
106+ ` ` `
107+
108+ ## Scaleway Object Storage
109+
110+ The Scaleway Object Storage is compatible with the AWS S3 API, meaning that you can use the same configuration
111+ as for a AWS storage. For example:
112+
113+ ` ` ` yaml
114+ # config/packages/flysystem.yaml
115+
116+ services :
117+ scaleway_spaces_client :
118+ class : ' AsyncAws\S3\S3Client'
119+ arguments :
120+ - endpoint : ' %env(SCALEWAY_SPACES_ENDPOINT)%'
121+ accessKeyId : ' %env(SCALEWAY_SPACES_ID)%'
122+ accessKeySecret : ' %env(SCALEWAY_SPACES_SECRET)%'
123+
124+ flysystem :
125+ storages :
126+ cdn.storage :
127+ adapter : ' asyncaws'
128+ options :
129+ client : ' scaleway_spaces_client'
130+ bucket : ' %env(SCALEWAY_SPACES_BUCKET)%'
131+ ` ` `
132+
93133## Next
94134
95135[Interacting with FTP and SFTP servers](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/3-interacting-with-ftp-and-sftp-servers.md)
0 commit comments