PHP code example of vaffel / silex-imbo

1. Go to this page and download the library: Download vaffel/silex-imbo library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vaffel / silex-imbo example snippets


$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
));

$response = $app['imbo']->addImage('/path/to/image.jpg');