dsawardekar/imgur-api

Library for using the Imgur API in PHP

0.4.1 2014-06-28 10:50 UTC

README

PHP Library for using the Imgur API.

Usage

<?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'];

System Requirements

  • PHP 5.3.3+

License

MIT License. Copyright © 2014 Darshan Sawardekar