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

https://github.com/hyperf/flysystem-oss

Aliyun OSS Adapter for Flysystem v2.0
https://github.com/hyperf/flysystem-oss

Last synced: 6 months ago
JSON representation

Aliyun OSS Adapter for Flysystem v2.0

Awesome Lists containing this project

README

          

# OSS Adapter for Flysystem

```
composer require hyperf/flysystem-oss
```

## 鸣谢

借鉴了 [xxtime/flysystem-aliyun-oss](https://github.com/xxtime/flysystem-aliyun-oss) 部分代码,在此表示感谢。

## 使用

```php
env('OSS_ACCESS_ID'),
'accessSecret' => env('OSS_ACCESS_SECRET'),
'bucket' => env('OSS_BUCKET'),
'endpoint' => env('OSS_ENDPOINT'),
'timeout' => 3600,
'connectTimeout' => 10,
'isCName' => false,
'token' => null,
'proxy' => null,
]);
$flysystem = new Filesystem($adapter);
$flysystem->write('test.json', Json::encode(['id' => uniqid()]));
```