qifei / flysystem-obs
Flysystem 的 OBS 文件系统适配器。
3.1.1
2024-06-19 14:21 UTC
Requires
- php: ^8.0
- ext-json: *
- league/flysystem: ^3.10
- qifei/esdk-obs-php: ^3.23
Requires (Dev)
- league/flysystem-adapter-test-utilities: ^3.7
- mockery/mockery: ~1.3.3 || ^1.4.2
- phpstan/phpstan-mockery: ^1.0
- phpunit/phpunit: ^9.3.3 || ^10.0 || ^11.0
- zing/coding-standard: ^6.4 || ^7.0
This package is auto-updated.
Last update: 2024-09-19 15:04:14 UTC
README
要求
版本信息
使用 Composer 安装 Flysystem OBS
composer require zing/flysystem-obs
使用方法
use League\Flysystem\Filesystem; use Obs\ObsClient; use Zing\Flysystem\Obs\ObsAdapter; $prefix = ''; $config = [ 'key' => 'aW52YWxpZC1rZXk=', 'secret' => 'aW52YWxpZC1zZWNyZXQ=', 'bucket' => 'test', 'endpoint' => 'obs.cn-east-3.myhuaweicloud.com', ]; $config['options'] = [ 'url' => '', 'endpoint' => $config['endpoint'], 'bucket_endpoint' => '', 'temporary_url' => '', ]; $client = new ObsClient($config); $adapter = new ObsAdapter($client, $config['bucket'], $prefix, null, null, $config['options']); $flysystem = new Filesystem($adapter);
集成
- Laravel: zing/laravel-flysystem-obs
参考
许可证
Flysystem OBS 是一个开源软件,使用 MIT 许可证 许可。