Package Data | |
---|---|
Maintainer Username: | jungehaie |
Maintainer Contact: | goldmann@jungehaie.com (Stanislav Goldmann) |
Package Create Date: | 2016-10-25 |
Package Last Update: | 2016-10-26 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-11 15:08:28 |
Package Statistics | |
---|---|
Total Downloads: | 1,681 |
Monthly Downloads: | 3 |
Daily Downloads: | 1 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 1 |
A Laravel Flysystem implementation for the Google Cloud Storage via a S3Client.
You can install this package via composer using this command:
composer require jungehaie/filesystem-google-cloud-storage
// config/app.php
'providers' => [
...
JungeHaie\GoogleCloudStorage\GoogleCloudStorageServiceProvider::class,
]
// bootstrap/app.php
$app->register(JungeHaie\GoogleCloudStorage\GoogleCloudStorageServiceProvider::class);
config/filesystems.php
You can copy the content of Laravels filesystems.php
// bootstrap/app.php
$app->configure('filesystems');
Now you're all set!
Your basic config/filesystems.php
disk entry could look like this:
'google' => [
'driver' => 'gcs',
'key' => env('GCS_KEY'),
'secret' => env('GCS_SECRET'),
'region' => env('GCS_REGION'),
'bucket' => env('GCS_BUCKET'),
This will often be enough to get you started.
However you can also set following options:
Where do I get a GCS key and secret?
Look no furhter!
How do I set a GCS region?
I got you covered.
Add tests - Your patch won't be accepted if it doesn't have tests.
Document any changes - Make sure the README.md
and any other relevant documentation are kept up-to-date.
Create feature branches - Use git checkout -b my-new-feature
One pull request per feature - If you want to do more than one thing, send multiple pull requests.
Send coherent history - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.
This library is distributed under the terms of the MIT license