Service provider making the Imbo accessible to your Silex application.
Add "vaffel/silex-imbo": "XXX"
to the composer.json file inside your project and do a composer install
. Check Composer for the latest available version.
Register the Imbo service provider in your Silex app like this;
$app->register(new ImboServiceProvider(), array(
'imbo.serverUrls' => ['http://example.net', ...], // Array of urls to imbo installations
'imbo.publicKey' => $publicKey, // Public key
'imbo.privateKey' => $privateKey, // Private key
'imbo.user' => $user, // User
));
After registering the Imbo service provider, the ImboClient instance can be accessed from the $app
variable like this;
$response = $app['imbo']->addImage('/path/to/image.jpg');
The service provider comes with PHPUnit tests and can be run by doing a ./vendor/phpunit/phpunit/phpunit
inside the silex-imbo folder.
Read the full ImboClient documentation at imboclient-php.readthedocs.org.
License Copyright (c) 2014, Kristoffer Brabrand [email protected]
Licensed under the MIT License