Flysystem adapter for Google Cloud Storage.
Via Composer
$ composer require talboterie/flysystem-gcp-storage
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);
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email vincent@talbot.ninja
instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.