Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Silverbox PHP client

Topics

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages