PHP code example of as247 / flysystem-alist
1. Go to this page and download the library: Download as247/flysystem-alist 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/ */
as247 / flysystem-alist example snippets
use As247\Flysystem\AList\AListAdapter;
use League\Flysystem\Filesystem;
$adapter = new AListAdapter('https://your-alist-url.com', [
'token'=>'your-token',
'root'=>'/root_path'
]);
$filesystem = new Filesystem($adapter);