PHP code example of duan617 / think-filesystem-cloud

1. Go to this page and download the library: Download duan617/think-filesystem-cloud 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/ */

    

duan617 / think-filesystem-cloud example snippets


composer 

"disks" => [
    // oss 配置
    'oss' => [
        'type'   => 'oss',
        'prefix' => '',
        'access_key' => '',
        'secret_key' => '',
        'end_point'  => '', // ssl:https://iidestiny.com
        'bucket'     => '',
        'is_cname'   => true,
    ],
    // 七牛配置
    'qiniu' => [
        'type'       => 'qiniu',
        'access_key' => '',
        'secret_key' => '',
        'bucket'     => '',
        'domain'     => '',
    ],
    // 腾讯云配置
    'qcloud' => [
        'type'        => 'qcloud',
        'region'      => '',
            'credentials' => [
                'appId'      => '', // 域名中数字部分
                'secretId'   => '',
                'secretKey'  => '',
            ],
            'bucket'          => 'test',
            'timeout'         => 60,
            'connect_timeout' => 60,
            'cdn'             => '您的 CDN 域名',
            'scheme'          => 'https',
            'read_from_cdn'   => false,
    ]