zing / flysystem-tos
TOS filesystem adapter for Flysystem.
Fund package maintenance!
www.paypal.com/paypalme/zingimmick
Installs: 2 425
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- ext-json: *
- league/flysystem: ^3.10
- zing/ve-tos-php-sdk: ^2.1
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
This package is auto-updated.
Last update: 2024-11-15 00:06:55 UTC
README
Requires
Version Information
Require Flysystem TOS using Composer:
composer require zing/flysystem-tos
Usage
use League\Flysystem\Filesystem; use Tos\TosClient; use Zing\Flysystem\Tos\TosAdapter; $prefix = ''; $config = [ 'ak' => 'aW52YWxpZC1rZXk=', 'sk' => 'aW52YWxpZC1zZWNyZXQ=', 'region' => 'cn-shanghai', 'bucket' => 'test', 'endpoint' => 'tos-cn-shanghai.volces.com', ]; $config['options'] = [ 'url' => '', 'endpoint' => $config['endpoint'], 'bucket_endpoint' => '', 'temporary_url' => '', ]; $client = new TosClient($config); $adapter = new TosAdapter($client, $config['bucket'], $prefix, null, null, $config['options']); $flysystem = new Filesystem($adapter);
Integration
- Laravel: zing/laravel-flysystem-tos
Reference
License
Flysystem TOS is an open-sourced software licensed under the MIT license.