1. Go to this page and download the library: Download wispx/flysystem-upyun 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/ */
wispx / flysystem-upyun example snippets
use League\Flysystem\Filesystem;
use WispX\Flysystem\Upyun\UpyunAdapter;
$service = 'xxxxxx';
$operator = 'xxxxxx';
$password = 'xxxxxx';
$domain = 'xxxx.test.upcdn.net'; // or with protocol: https://xxxx.test.upcdn.net
$adapter = new UpyunAdapter($service, $operator, $password, $domain);
$flysystem = new League\Flysystem\Filesystem($adapter);