GitHub API implementation in PHP 5.3+