talboterie / flysystem-gcp-storage
Flysystem adapter for Google Cloud Storage
Fund package maintenance!
vtalbot
Requires
- php: >=7.2
- google/cloud-storage: ^1.17
- league/flysystem: ^1.0
Requires (Dev)
- phpunit/phpunit: ~8.0
- squizlabs/php_codesniffer: ~3.5
This package is auto-updated.
Last update: 2024-12-08 01:19:34 UTC
README
Flysystem adapter for Google Cloud Storage.
Install
Via Composer
$ composer require talboterie/flysystem-gcp-storage
Usage
use League\Flysystem\Filesystem; use Google\Cloud\Storage\StorageClient; use Talboterie\FlysystemGCPStorage\StorageAdapter; $client = new StorageClient([ 'projectId' => 'your-gcp-project-id', 'keyFilePath' => '/path/to/credentials.json', ]); $adapter = new StorageAdapter($client->bucket('your-bucket')); $filesystem = new Filesystem($adapter);
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email vincent@talbot.ninja
instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.