larva / laravel-flysystem-qiniu
This is a Flysystem adapter for the Qiniu.
Installs: 1 145
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 | ^8.0
- illuminate/support: ^6.0 || ^7.0 || ^8.0
- league/flysystem: ^1.0
- qiniu/php-sdk: ^7.4
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-11-29 05:27:21 UTC
README
This is a Flysystem adapter for the Qiniu
Installation
composer require larva/laravel-flysystem-qiniu -vv
for Laravel
This service provider must be registered.
// config/app.php 'providers' => [ '...', Larva\Flysystem\Qiniu\QiniuServiceProvider::class, ];
edit the config file: config/filesystems.php
add config
'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
'default' => 'qiniu'
Use
see Laravel wiki