jungleran / aliyun-oss-php-sdk-flysystem
This is a Flysystem adapter for the Aliyun OSS ^2.2.1
v2.3.0
2018-07-25 08:07 UTC
Requires
- php: >=5.5.9
- aliyuncs/oss-sdk-php: 2.3.0
- league/flysystem: 1.0.45
Requires (Dev)
- phpunit/phpunit: ~4.0
- satooshi/php-coveralls: ~1.0
This package is auto-updated.
Last update: 2024-11-16 18:18:30 UTC
README
This is a Flysystem Adapter for the AliCloud OSS ^2.2.1
Installation
composer require aliyuncs/aliyun-oss-flysystem
Environment variables (oss.env)
Samples and unit tests depend on environment variables for OSS configuration.
cp oss.env-example oss.env
vim oss.env
# edit environment variables, e.g.:
export OSS_ACCESS_KEY_ID=your id
export OSS_ACCESS_KEY_SECRET=your secret
export OSS_ENDPOINT=your endpoint
export OSS_BUCKET=your bucket
Write and save (:wq).
Running Sample
source oss.env
cd vendor/aliyun/aliyun-oss-flysystem/
php samples/AliyunOssFlysystem.php
Running Test
source oss.env cd vendor/aliyun/aliyun-oss-flysystem/ composer install php vendor/bin/phpunit