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

README

Build Status Coverage Status

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

License