dev-master
9999999-devRemote storage service client
MIT
The Requires
- php >=7.0
The Development Requires
by Hasitha Mapalagama
v0.1
0.1.0.0Remote storage service client
MIT
The Requires
- php >=7.0
The Development Requires
by Hasitha Mapalagama
Wallogit.com
2017 © Pedro Peláez
Remote storage service client
Treinetic remote storage (TRS) is a highly available cloud storage services. We provide 99.9% up time and multi regional backups. TRS provide sophisticated security compliances and it is optimized for high speed data delivery. For more details contact us via info@treinetic.com, (*1)
composer require treinetic/remote-storage
Import StorageClient into your .php file, (*2)
use Treinetic\RStorage\StorageClient;
Then initialize the StorageClient. StorageClient's constructor accept 3 arguments.
- URL endpoint of the remote server
- accessKey enpoint access key
- secretKey enpoint secret key, (*3)
$storageClient = new \Treinetic\RStorage\StorageClient($server,
$accessKey,
$secretKey);
$storageClient->makeDirectory("dirName");
$storageClient->put('./test/img.jpg', 'user/profile', 'my.jpg');
$response = $storageClient->get('user/profile/my.jpg');
file_put_contents('img.jpg', $response);
$storageClient->copy('user/profile/my.jpg', 'user/profile/copy.jpg');
$storageClient->move('user/profile/my.jpg', 'user/profile/move.jpg');
$result = $storageClient->exists('user/profile/my.jpg');
var_dump($result); // true or false
$storageClient->delete('user/profile/my.jpg');
Remote storage service client
MIT
Remote storage service client
MIT