Skip to content

Commit fe500bc

Browse files
committed
Add Google Cloud to the docs again
1 parent 524ce4b commit fe500bc

3 files changed

Lines changed: 35 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ to interact with your storage.
9797
2. Cloud storage providers:
9898
[AsyncAws S3](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#asyncaws-s3),
9999
[AWS S3](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/2-cloud-storage-providers.md#aws-s3),
100+
[Google Cloud Storage](https://flysystem.thephpleague.com/v2/docs/adapter/gcs/),
100101
3. [Interacting with FTP and SFTP servers](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/3-interacting-with-ftp-and-sftp-servers.md)
101102
4. [Caching metadata in Symfony cache](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/4-caching-metadata-in-symfony-cache.md)
102103
5. [Using a lazy adapter to switch storage backend using an environment variable](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/5-using-lazy-adapter-to-switch-at-runtime.md)

docs/2-cloud-storage-providers.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ cloud providers by providing corresponding adapters in the configuration.
88
* [AWS S3](#aws-s3)
99
* [DigitalOcean Spaces](#digitalocean-spaces)
1010
* [Scaleway Object Storage](#scaleway-object-storage)
11+
* [Google Cloud Storage](#google-cloud-storage)
1112

1213
## AsyncAws S3
1314

@@ -66,6 +67,29 @@ as for a AWS storage.
6667
The Scaleway Object Storage is compatible with the AWS S3 API, meaning that you can use the same configuration
6768
as for a AWS storage.
6869
70+
## Google Cloud Storage
71+
72+
### Installation
73+
74+
```
75+
composer require league/flysystem-google-cloud-storage
76+
```
77+
78+
### Usage
79+
80+
```yaml
81+
# config/packages/flysystem.yaml
82+
83+
flysystem:
84+
storages:
85+
users.storage:
86+
adapter: 'gcloud'
87+
options:
88+
client: 'gcloud_client_service' # The service ID of the Google\Cloud\Storage\StorageClient instance
89+
bucket: 'bucket_name'
90+
prefix: 'optional/path/prefix'
91+
```
92+
6993
## Next
7094
7195
[Interacting with FTP and SFTP servers](https://github.com/thephpleague/flysystem-bundle/blob/master/docs/3-interacting-with-ftp-and-sftp-servers.md)

docs/B-configuration-reference.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ flysystem:
3333
ignore_passive_address: ~
3434

3535
users5.storage:
36+
adapter: 'gcloud'
37+
options:
38+
client: 'gcloud_client_service'
39+
bucket: 'bucket_name'
40+
prefix: 'optional/path/prefix'
41+
42+
users6.storage:
3643
adapter: 'local'
3744
options:
3845
directory: '%kernel.project_dir%/storage'
@@ -46,13 +53,13 @@ flysystem:
4653
public: 0755
4754
private: 0700
4855

49-
users6.storage:
56+
users7.storage:
5057
adapter: 'memory'
5158

52-
users7.storage:
59+
users8.storage:
5360
adapter: 'null'
5461

55-
users8.storage:
62+
users9.storage:
5663
adapter: 'sftp'
5764
options:
5865
host: 'example.com'

0 commit comments

Comments
 (0)