1. Go to this page and download the library: Download ssntpl/cloud-storage 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/ */
ssntpl / cloud-storage example snippets
'disks' => [
'cloud_disk' => [
'driver' => 'cloud',
'cache_disk' => 'local',
'remote_disks' => [
'remote_disk_1',
'remote_disk_2',
's3',
'minio',
// Add more remote disks as needed...
],
'cache_time' => 24, // Time (in hours) to cache files on the cache disk
],
// Define other disks (including cache disk, and remote disks used in the cloud disk above)
],