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

https://github.com/zingimmick/laravel-flysystem-oss

OSS storage filesystem for Laravel
https://github.com/zingimmick/laravel-flysystem-oss

flysystem laravel oss

Last synced: over 1 year ago
JSON representation

OSS storage filesystem for Laravel

Awesome Lists containing this project

README

          

# Laravel Flysystem OSS

OSS storage filesystem for Laravel based on [zing/flysystem-oss](https://github.com/zingimmick/flysystem-oss)

[![Build Status](https://github.com/zingimmick/laravel-flysystem-oss/actions/workflows/tests.yml/badge.svg?banch=master)](https://github.com/zingimmick/laravel-flysystem-oss/actions)
[![Code Coverage](https://codecov.io/gh/zingimmick/laravel-flysystem-oss/branch/master/graph/badge.svg)](https://codecov.io/gh/zingimmick/laravel-flysystem-oss)
[![Latest Stable Version](https://poser.pugx.org/zing/laravel-flysystem-oss/v/stable.svg)](https://packagist.org/packages/zing/laravel-flysystem-oss)
[![Total Downloads](https://poser.pugx.org/zing/laravel-flysystem-oss/downloads)](https://packagist.org/packages/zing/laravel-flysystem-oss)
[![Latest Unstable Version](https://poser.pugx.org/zing/laravel-flysystem-oss/v/unstable.svg)](https://packagist.org/packages/zing/laravel-flysystem-oss)
[![License](https://poser.pugx.org/zing/laravel-flysystem-oss/license)](https://packagist.org/packages/zing/laravel-flysystem-oss)

> **Requires**
> - **[PHP 8.0+](https://php.net/releases/)**
> - **[Laravel 9.0+](https://laravel.com/docs/releases)**

## Version Information

| Version | Illuminate | PHP Version | Status |
|:--------|:-----------|:------------|:------------------------|
| 2.x | 9.x | >= 8.0 | Active support :rocket: |
| 1.x | 6.x - 8.x | >= 7.2 | Active support |

Require Laravel Flysystem OSS using [Composer](https://getcomposer.org):

```bash
composer require zing/laravel-flysystem-oss
```

## Configuration

```php
return [
// ...
'disks' => [
// ...
'oss' => [
'driver' => 'oss',
'root' => '',
'access_key_id' => env('OSS_ACCESS_KEY_ID'),
'access_key_secret' => env('OSS_ACCESS_KEY_SECRET'),
'bucket' => env('OSS_BUCKET'),
'endpoint' => env('OSS_ENDPOINT'),
'is_cname' => env('OSS_IS_CNAME', false),
'security_token' => env('OSS_SECURITY_TOKEN'),
],
]
];
```

## Environment

```dotenv
OSS_ACCESS_KEY_ID=
OSS_ACCESS_KEY_SECRET=
OSS_BUCKET=
OSS_ENDPOINT=
OSS_IS_CNAME=false
OSS_SECURITY_TOKEN=
```

## License

Laravel Flysystem OSS is an open-sourced software licensed under the [MIT license](LICENSE).