PHP code example of freyo / flysystem-qcloud-cos-v3
1. Go to this page and download the library: Download freyo/flysystem-qcloud-cos-v3 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/ */
freyo / flysystem-qcloud-cos-v3 example snippets
use Freyo\Flysystem\QcloudCOSv3\Adapter;
use League\Flysystem\Filesystem;
d' => 'your-app-id',
'secret_id' => 'your-secret-id',
'secret_key' => 'your-secret-key',
'timeout' => 60,
'bucket' => 'your-bucket-name',
'debug' => false,
];
$adapter = new Adapter($config);
$filesystem = new Filesystem($adapter);