aliyuncs/aliyun-oss-flysystem

This is a Flysystem adapter for the Aliyun OSS ~2.2.1

v1.2.0 2017-08-03 03:31 UTC

This package is not auto-updated.

Last update: 2024-10-05 21:29:06 UTC


README

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