/aliyun-oss-php-sdk-flysystem

Flysystem Adapter for AliCloud OSS

Primary LanguagePHPMIT LicenseMIT

Flysystem Adapter for AliCloud OSS

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