https://github.com/xutl/flysystem-aliyun-oss
This is a Flysystem adapter for the Aliyun OSS
https://github.com/xutl/flysystem-aliyun-oss
Last synced: 2 months ago
JSON representation
This is a Flysystem adapter for the Aliyun OSS
- Host: GitHub
- URL: https://github.com/xutl/flysystem-aliyun-oss
- Owner: xutl
- License: mit
- Created: 2018-06-07T01:35:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-20T08:47:34.000Z (over 6 years ago)
- Last Synced: 2025-01-20T12:46:36.621Z (4 months ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flysystem-aliyun-oss
This is a Flysystem adapter for the Aliyun OSS
## Installation
```bash
composer require xutl/flysystem-aliyun-oss
```## for Laravel
This service provider must be registered.
```php
// config/app.php'providers' => [
'...',
XuTL\Flysystem\AliyunOss\AliyunOssServiceProvider::class,
];
```edit the config file: config/filesystems.php
add config
```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'),
'prefix' => env('OSS_PREFIX', ''), // optional
],
```change default to oss
```php
'default' => 'oss'
```## Use
see [Laravel wiki](https://laravel.com/docs/5.6/filesystem)