PHP Library for using the Imgur API.
<?php
$container
->singleton('imgurCredentials', 'Imgur\Credentials')
->singleton('imgurAdapter', 'Imgur\Adapter')
->singleton('imgurImageRepo', 'Imgur\ImageRepo');
$imageRepo = $container->lookup('imgurImageRepo');
$image = $imageRepo->create(
array(
'image' => 'http://path/to/image',
'title' => 'My Image'
)
);
echo $image['link'];
- PHP 5.3.3+
MIT License. Copyright © 2014 Darshan Sawardekar