| Package Data | |
|---|---|
| Maintainer Username: | l-guo |
| Maintainer Contact: | 164445438@qq.com (liuchengguos) |
| Package Create Date: | 2016-11-18 |
| Package Last Update: | 2016-11-18 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-31 03:01:44 |
| Package Statistics | |
|---|---|
| Total Downloads: | 10 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 0 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Aliyun oss driver for Laravel5.0+, also support flysystem adapter.
$request->file("image")->store("test");
//...
more infomation 更多信息:
This package can be installed through Composer.
composer require liuchengguos/aliyun-oss-adapter
This service provider must be registered.
// config/app.php
'providers' => [
...,
Liuchengguos\OSS\AliyunOssFilesystemServiceProvider::class,
];
add config:
// config/filesystem.php.
'oss' => [
'driver' => 'oss',
'access_id' => env('OSS_ACCESS_ID','your id'),
'access_key' => env('OSS_ACCESS_KEY','your key'),
'bucket' => env('OSS_BUCKET','your bucket'),
'endpoint' => env('OSS_ENDPOINT','your endpoint'),
// eg. oss-cn-beijing.aliyuncs.com !!without 'http://' in OSS SDK 2.0+
],
change default to oss
'default' => 'oss';