Package Data | |
---|---|
Maintainer Username: | orzcc |
Maintainer Contact: | orzcczh@gmail.com (orzcc) |
Package Create Date: | 2015-05-07 |
Package Last Update: | 2015-12-28 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:11:40 |
Package Statistics | |
---|---|
Total Downloads: | 25,313 |
Monthly Downloads: | 14 |
Daily Downloads: | 0 |
Total Stars: | 30 |
Total Watchers: | 3 |
Total Forks: | 9 |
Total Open Issues: | 0 |
Aliyun oss for Laravel5, also support flysystem adapter.
This package can be installed through Composer.
composer require orzcc/aliyun-oss
This service provider must be registered.
// config/app.php
'providers' => [
'...',
'Orzcc\AliyunOss\AliyunOssServiceProvider',
];
At last, you can edit the config file: config/filesystem.php.
add a disk config to the config
'oss' => [
'driver' => 'oss',
'access_id' => 'Your oss access id',
'access_key' => 'Your oss access key',
'bucket' => 'Your project bucket on oss',
'endpoint' => '', // 青岛节点需要指定,杭州节点不需要
'prefix' => '' // Path prefix, default can keep empty
],
change default to oss
'default' => 'oss';
You can now use Laravel5's flysystem to upload or get file/directory from oss, follow the document, http://laravel.com/docs/5.0/filesystem