dsawardekar / imgur-api
Library for using the Imgur API in PHP
Installs: 587
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/dsawardekar/imgur-api
Requires
- dsawardekar/encase-php: ~0.2.0
- rmccue/requests: >=1.0
Requires (Dev)
- phpunit/phpunit: ~3.7.0
This package is not auto-updated.
Last update: 2025-10-11 20:30:45 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