Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/larvatecn/laravel-flysystem-qiniu
This is a Flysystem adapter for the Qiniu
https://github.com/larvatecn/laravel-flysystem-qiniu
kodo laravel php qiniu
Last synced: 12 days ago
JSON representation
This is a Flysystem adapter for the Qiniu
- Host: GitHub
- URL: https://github.com/larvatecn/laravel-flysystem-qiniu
- Owner: larvatecn
- License: mit
- Created: 2021-02-19T13:25:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-03T11:24:19.000Z (almost 3 years ago)
- Last Synced: 2024-11-24T22:48:25.421Z (28 days ago)
- Topics: kodo, laravel, php, qiniu
- Language: PHP
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-flysystem-qiniu
This is a Flysystem adapter for the Qiniu
[![PHP Composer](https://github.com/larvatecn/laravel-flysystem-qiniu/actions/workflows/php.yml/badge.svg)](https://github.com/larvatecn/laravel-flysystem-qiniu/actions/workflows/php.yml)
## Installation
```bash
composer require larva/laravel-flysystem-qiniu -vv
```## for Laravel
This service provider must be registered.
```php
// config/app.php'providers' => [
'...',
Larva\Flysystem\Qiniu\QiniuServiceProvider::class,
];
```edit the config file: config/filesystems.php
add config
```php
'qiniu' => [
'driver' => 'qiniu',
'access_key' => env('QINIU_ACCESS_KEY'),
'secret_key' => env('QINIU_SECRET_KEY'),
'bucket' => env('QINIU_BUCKET'),
'prefix' => env('QINIU_PREFIX'), // optional
'url' => env('QINIU_BUCKET_URL'),
'visibility' => 'private',
],
```change default to oss
```php
'default' => 'qiniu'
```## Use
see [Laravel wiki](https://laravel.com/docs/5.6/filesystem)