Skip to content

Commit 44463fc

Browse files
authored
added Google Cloud example, fixed #33
1 parent bd0bf4d commit 44463fc

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,33 @@ return [
228228
];
229229
```
230230

231+
## Google Cloud filesystem
232+
233+
Run
234+
235+
```bash
236+
$ composer require "superbalist/flysystem-google-storage": "^5.0"
237+
```
238+
239+
and configure application `components` as follows
240+
241+
```php
242+
return [
243+
//...
244+
'components' => [
245+
//...
246+
'googleCloudFs' => [
247+
'class' => 'creocoder\flysystem\GoogleCloudFilesystem',
248+
'projectId' => 'GOOGLE_PROJECT_ID',
249+
'bucket' => 'GOOGLE_BUCKET',
250+
'keyFilePath' => 'GOOGLE_KEY_FILE_PATH',
251+
],
252+
],
253+
];
254+
```
255+
256+
> Note: Credential configuration is read from the *keyFile*.
257+
231258
### GridFS filesystem
232259

233260
Either run

0 commit comments

Comments
 (0)