jimchen / flysystem-aliyun-oss
Flysystem adapter for the Aliyun Oss SDK v2.*
Installs: 1 292
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.5.0
- aliyuncs/oss-sdk-php: ^2.3
- guzzlehttp/psr7: ^1.4
- league/flysystem: ^1.0
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: ~1.0.1
- phpspec/phpspec: ^2.0.0
- symfony/var-dumper: ^3.4
This package is auto-updated.
Last update: 2024-11-18 03:03:06 UTC
README
This is a Flysystem adapter for the Aliyun Oss SDK v2.*
Requirement
- PHP >= 5.5.9
- Composer
- Openssl Extension
- cURL Extension
Installing
$ composer require jimchen/flysystem-aliyun-oss -vvv
Usage
<?php use OSS\OssClient; use League\Flysystem\Filesystem; use JimChen\Flysystem\AliyunOss\AliyunOssAdapter; include __DIR__ . '/vendor/autoload.php'; $client = new OssClient([ 'your-access-key-id', 'your-access-key-secret', 'your-bucket-name', 'your-endpoint' ]); $adapter = new AliyunOssAdapter($client, 'your-bucket-name'); $filesystem = new Filesystem($adapter);
License
MIT