An open API service indexing awesome lists of open source software.

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

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)