PHP code example of simcu / speedycloud-storage
1. Go to this page and download the library: Download simcu/speedycloud-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/ */
simcu / speedycloud-storage example snippets
$scs = new Actor;
$scs->init('access_key','secret_key','bucket');
$scs->newObject($remote, $content)
$scs->delObject($name)
$scs->getObject($name)
Storage::extend('speedycloud',function($app,$config){
$client = new FlysystemAdapter($config['accessKey'],$config['secretKey'],$config['bucket']);
return new Filesystem($client);
});