snide / php-osrc-client
PHP Osrc Client
dev-master
2014-02-26 12:50 UTC
Requires
- php: >=5.3.3
- guzzle/http: 3.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-11-09 15:39:34 UTC
README
A PHP Client for osrc.dfm.io API
Installation
Installation by Composer
If you use composer, add osrc-client library as a dependency to the composer.json of your application
"require": { ... "snide/php-osrc-client": "dev-master" ... },
Usage
To access http://osrc.dfm.io/username.json, you can do :
<?php $client = new Snide\Osrc\Client(); $repo = $client->fetchUser(new User('username'));
That's all!