heseya / silverbox-client
PHP Client for Silverbox API
dev-master
2020-03-24 22:42 UTC
Requires
- php: ^7.1
This package is auto-updated.
Last update: 2025-03-01 00:16:28 UTC
README
PHP Client for Silverbox API.
Requirements
PHP 7.1+ with curl extension.
Installation
You can add this library as a local, per-project dependency to your project using Composer.
composer require heseya/silverbox-client
How to use?
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)
License
Released under the MIT License. Please see License File for details.