Skip to content

heseya/silverbox-client-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages