talboterie/flysystem-gcp-storage

Google Cloud Storage 的 Flysystem 适配器

v1.0.0 2020-02-07 14:25 UTC

This package is auto-updated.

Last update: 2024-09-08 00:55:00 UTC


README

Latest Version on Packagist Software License GitHub Workflow Status Coverage Status Quality Score Total Downloads

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)。有关更多信息,请参阅许可证文件