A PHP Client for osrc.dfm.io API
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"
...
},
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!