PHP Client for Silverbox API.
PHP 7.1+ with curl extension.
You can add this library as a local, per-project dependency to your project using Composer.
composer require heseya/silverbox-client
Upload a file.
$silverbox = new Silverbox('http://localhost');
$silverbox->as('client', 'key')->upload('photo.jpg');
Get public file url.
$silverbox->as('client')->url($fileName);
Get private file.
$silverbox->host('http://example.com')->get($fileName);
Get file info.
$silverbox->info($fileName);
Delete a file.
$silverbox->delete($fileName)
Released under the MIT License. Please see License File for details.