Skip to content

dsawardekar/imgur-api

Repository files navigation

Imgur-API

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

About

Library for using the Imgur API in PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages