aliyuncs / aliyun-oss-flysystem
This is a Flysystem adapter for the Aliyun OSS ~2.2.1
Installs: 21 477
Dependents: 3
Suggesters: 1
Security: 0
Stars: 43
Watchers: 10
Forks: 6
Open Issues: 2
Requires
- php: >=5.5.9
- aliyuncs/oss-sdk-php: ~2.2.1
- league/flysystem: ~1.0
Requires (Dev)
- phpunit/phpunit: ~4.0
- satooshi/php-coveralls: ~1.0
This package is not auto-updated.
Last update: 2024-12-14 22:29:17 UTC
README
This is a Flysystem Adapter for the AliCloud OSS ~1.2.1
Installation
composer require aliyuncs/aliyun-oss-flysystem
Running Sample
cd vendor/aliyun/aliyun-oss-flysystem/
vim samples/Config.php
modify the following config:
const OSS_ACCESS_ID = '';
const OSS_ACCESS_KEY = '';
const OSS_ENDPOINT = '';
const OSS_TEST_BUCKET = '';
php samples/AliyunOssFlysystem.php
Running Test
export OSS_ACCESS_KEY_ID=your id export OSS_ACCESS_KEY_SECRET=your secret export OSS_ENDPOINT=your endpoint export OSS_BUCKET=your bucket cd vendor/aliyun/aliyun-oss-flysystem/ composer install php vendor/bin/phpunit