Package Data | |
---|---|
Maintainer Username: | Shion |
Maintainer Contact: | shion.chow@gmail.com (Shion) |
Package Create Date: | 2015-10-06 |
Package Last Update: | 2016-05-31 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-17 03:00:41 |
Package Statistics | |
---|---|
Total Downloads: | 26 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
#Shion\Aliyun\OSS Flysystem adapter for the Aliyun OSS, support for Laravel.
Through Composer, obviously:
composer require shion/aliyun-oss
Once Aliyun OSS is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key.
Shion\Aliyun\OSS\OSSServiceProvider::class
'oss' => [
'driver' => 'oss',
'access_id' => 'your_access_id',
'access_key' => 'your_access_key',
'bucket' => 'bucket_name',
'region' => 'bucket_region',
'internal_mode' => false,
],
region
The region of Aliyun OSS Data Center. Accepted region are
hangzhou
,qingdao
,beijing
,hongkong
,shenzhen
,shanghai
,west-1
andsoutheast-1
.
internal_mode
Use the internal mode. Provided that your ECS and Bucket in the same region.
##Usage Visit http://laravel.com/docs/5.1/filesystem