PHP code example of fromthink / flysystem-upyun-old
1. Go to this page and download the library: Download fromthink/flysystem-upyun-old 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/ */
fromthink / flysystem-upyun-old example snippets
use League\Flysystem\Filesystem;
use JellyBool\Flysystem\Upyun\UpyunAdapter;
$bucket = 'your-bucket-name';
$operator = 'oparator-name';
$password = 'operator-password';
$domain = 'xxxxx.b0.upaiyun.com'; // 或者 https://xxxx.b0.upaiyun.com
$adapter = new UpyunAdapter($bucket, $operator, $password, $domain);
$flysystem = new Filesystem($adapter);
'providers' => [
// Other service providers...
JellyBool\Flysystem\Upyun\UpyunServiceProvider::class,
],