talboterie/flysystem-gcp-storage
Google Cloud Storage 的 Flysystem 适配器
v1.0.0
2020-02-07 14:25 UTC
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-09-08 00:55:00 UTC
README
Google Cloud Storage 的 Flysystem 适配器。
安装
通过 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);
变更日志
有关最近更改的更多信息,请参阅变更日志。
测试
$ composer test
贡献
安全性
如果您发现任何安全相关的问题,请通过电子邮件发送至vincent@talbot.ninja
,而不是使用问题跟踪器。
鸣谢
许可证
MIT 许可证 (MIT)。有关更多信息,请参阅许可证文件。