Requires
Version | Flysystem | PHP Version | Status |
---|---|---|---|
3.x | 3.10+ | >= 8.0 | Active support 🚀 |
2.x | 2.x - 3.x | >= 7.2 | Active support |
1.x | 1.x | >= 7.2 | Active support |
Require Flysystem OBS using Composer:
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 is an open-sourced software licensed under the MIT license.