dsawardekar / imgur-api
Library for using the Imgur API in PHP
0.4.1
2014-06-28 10:50 UTC
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: 2024-11-09 15:55:34 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