PHP code example of larva / laravel-flysystem-qiniu

1. Go to this page and download the library: Download larva/laravel-flysystem-qiniu library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

larva / laravel-flysystem-qiniu example snippets


// config/app.php

'providers' => [
    '...',
    Larva\Flysystem\Qiniu\QiniuServiceProvider::class,
];

'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',
],

    'default' => 'qiniu'