PHP code example of hlf_513 / flysystem-ufile

1. Go to this page and download the library: Download hlf_513/flysystem-ufile 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/ */

    

hlf_513 / flysystem-ufile example snippets

 php
...
'disks'=>[
...
    'ufile' => [
        'driver' => 'ufile',
        'bucket' => env('UFILE_BUCKET'),
        'suffix' => env('UFILE_SUFFIX'),  // ufile上传地址
        'suffix_cdn' => env('UFILE_SUFFIX_CDN'), // ufile的CDN地址
        'public_key' => env('UFILE_ACCESS_KEY'), //AccessKey
        'secret_key' => env('UFILE_SECRET_KEY'), //SecretKey
    ],
],
...