PHP code example of wuxuejian / dcat-qiniu-upload

1. Go to this page and download the library: Download wuxuejian/dcat-qiniu-upload 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/ */

    

wuxuejian / dcat-qiniu-upload example snippets


'qiniu_d' => [
            'driver'     => 'qiniu',
            'access_key' => env('QINIU_ACCESS_KEY', ''),
            'secret_key' => env('QINIU_SECRET_KEY', ''),
            'bucket'     => env('QINIU_BUCKET', ''),
            'domain'     => env('QINIU_DOMAIN', ''), // or host: https://xxxx.clouddn.com
            //ECN华东 NCN华北 SCN华南 NA北美 ASG东南亚
            'region'    => env('QINIU_REGION', 'ECN'),  //地区
            'notify_url'=> '',  //持久化处理回调地址
            'url'       => env('QINIU_DOMAIN', ''),  // 填写文件访问根url
        ],


$form->filePlus('column', '视频')->qiniu('qiniu_d');