This is a service provider for the Silex PHP Micro Framework, for usage client the of sdk-dropbox. Core API
- PHP 5.3+, with 64-bit integers
- PHP cURL extension with SSL enabled (it's usually built-in).
- Must not be using
mbstring.func_overload
to overload PHP's standard string functions.
In the require
key of composer.json
file add the following
"naturalweb/nwsilex-dropbox": "dev-master"
Run the Composer update comand
$ composer update
In order to load and use a service provider, you must register it on the application
$app->register(new NwSilex\Provider\DropboxServiceProvider(), array(
'dropbox.token' => 'your-token',
'dropbox.app' => 'your-app',
));
$app['dropbox']->getAccountInfo();