zing / flysystem-obs
OBS filesystem adapter for Flysystem.
Fund package maintenance!
www.paypal.com/paypalme/zingimmick
Installs: 17 071
Dependents: 3
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 2
Open Issues: 1
Requires
- php: ^8.0
- ext-json: *
- league/flysystem: ^3.10
- zing/esdk-obs-php: ^3.19
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
- zing/coding-standard: ^6.4 || ^7.0
- 3.x-dev
- 3.1.0
- 3.0.0
- 2.x-dev
- 2.7.0
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.1
- 2.5.0
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.0
- 2.0.0-beta.1
- 1.x-dev
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-beta.2
- 1.0.0-beta.1
- 0.0.1
- dev-license/copyright-to-2025
- dev-dependabot/github_actions/shivammathur/setup-php-2.32.0
- dev-dependabot/composer/phpstan/phpstan-mockery-tw-1.0or-tw-2.0
This package is auto-updated.
Last update: 2025-01-02 03:13:12 UTC
README
Requires
Version Information
Require Flysystem OBS using Composer:
composer require zing/flysystem-obs
Usage
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);
Integration
- Laravel: zing/laravel-flysystem-obs
Reference
License
Flysystem OBS is an open-sourced software licensed under the MIT license.