Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 901 Bytes

README.md

File metadata and controls

48 lines (33 loc) · 901 Bytes

Silverbox PHP Client

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.