/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 ~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

License