monster / flysystem-aliyun-oss
A aliyun oss adapter for flysystem.
Installs: 9 697
Dependents: 0
Suggesters: 1
Security: 0
Stars: 6
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.4.0
- league/flysystem: 1.0.*
Requires (Dev)
- mockery/mockery: dev-master
- monster/aliyun-oss-sdk: 1.0.1
- phpunit/phpunit: 4.8.9
Suggests
- monster/aliyun-oss-sdk: Aliyun OSS composer SDK, based on offical.
This package is auto-updated.
Last update: 2024-12-21 21:31:07 UTC
README
A aliyun oss adapter for flysystem.
Note: setVisibility总是返回false. SDK没有提供删除目录,所以deleteDir也总是返回false.
SDK 可直接从阿里云下载,也可使用本人的composer
包,对SDK未作任何改动。
demo code:
<?php use League\Flysystem\Filesystem; use League\Flysystem\AliyunOSS\AliyunOSSAdapter; $OSSClient = new \ALIOSS($accessKey, $accessSecret, $endPoint); $adapter = new AliyunOSSAdapter($OSSClient, 'files-bucket'); $flysystem = new Filesystem($adapter); $flysystem->write('test.txt', 'this is test file content.');
TODO:
完善单元测试