{"id":24196289,"url":"https://github.com/linj1k/phpgithubapi","last_synced_at":"2026-06-07T08:31:51.686Z","repository":{"id":57015218,"uuid":"262216923","full_name":"Linj1k/PHPGithubAPI","owner":"Linj1k","description":"PHP library for github api","archived":false,"fork":false,"pushed_at":"2020-05-08T06:18:09.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T19:41:36.648Z","etag":null,"topics":["github-api","php","php-github-api","php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Linj1k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-08T03:22:49.000Z","updated_at":"2022-04-06T06:32:09.000Z","dependencies_parsed_at":"2022-08-22T09:31:29.668Z","dependency_job_id":null,"html_url":"https://github.com/Linj1k/PHPGithubAPI","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linj1k%2FPHPGithubAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linj1k%2FPHPGithubAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linj1k%2FPHPGithubAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linj1k%2FPHPGithubAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Linj1k","download_url":"https://codeload.github.com/Linj1k/PHPGithubAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241629769,"owners_count":19993710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-api","php","php-github-api","php-library"],"created_at":"2025-01-13T19:34:28.587Z","updated_at":"2026-06-07T08:31:51.649Z","avatar_url":"https://github.com/Linj1k.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHPGithubAPI\nPHP library for github api(https://developer.github.com/, https://api.github.com/)\n\nInformation : You need to activate curl\n\n## Exemple\n```php\n\u003c?php\n  require_once(__DIR__.'/vendor/autoload.php'); //Composer\n  $github = new Github\\Github(\"Username\", \"Personal access tokens\");\n  \n  $release = $github-\u003egetLatestRelease(\"Linj1k\", \"PHPGithubAPI\");\n  if(isset($release)){\n    $downloadLink = $release-\u003eassets[0]-\u003ebrowser_download_url;\n    $downloadAmount = $release-\u003eassets[0]-\u003edownload_count;\n  }\n?\u003e\n```\n\n## Available functions \n```php\nString | $githubAPI-\u003egetUserAgent()\nString | $githubAPI-\u003egetToken() //Private function\n```\n\n## -RateLimit // https://api.github.com/rate_limit\n```php \nBoolean | $githubAPI-\u003eisLimit($type) // core/search/graphql/integration_manifest\nString | $githubAPI-\u003egetLimit_Remaining($type) // core/search/graphql/integration_manifest\nObject/Variable | $githubAPI-\u003egetRateLimit(\"core/search/graphql/integration_manifest\"/\"limit/remaining/reset\") // Exemple : $githubAPI-\u003egetRateLimit('core/limit');\n```\n\n## -Releases // https://api.github.com/repos/:owner/:repo/releases\n```php \nObject | $githubAPI-\u003egetListReleases($owner, $repo) // https://api.github.com/repos/:owner/:repo/releases\nObject | $githubAPI-\u003egetReleaseByID($owner, $repo, $release_id) // https://api.github.com/repos/:owner/:repo/releases/:release_id\nObject | $githubAPI-\u003egetReleaseByTag($owner, $repo, $release_tag) // https://api.github.com/repos/:owner/:repo/releases/tags/:release_tag\nObject | $githubAPI-\u003egetListAssets($owner, $repo, $release_id) // https://api.github.com/repos/:owner/:repo/releases/:release_id/assets\nObject | $githubAPI-\u003egetAsset($owner, $repo, $asset_id) // https://api.github.com/repos/:owner/:repo/releases/assets/:asset_id\nObject | $githubAPI-\u003egetLatestRelease($owner, $repo) // https://api.github.com/repos/:owner/:repo/releases/latest\n```\n\n## -Downloads // https://api.github.com/repos/:owner/:repo/downloads\n```php \nObject | $githubAPI-\u003egetListDownloads($owner, $repo) // https://api.github.com/repos/:owner/:repo/downloads\nObject | $githubAPI-\u003egetDownload($owner, $repo, $download_id) // https://api.github.com/repos/:owner/:repo/downloads/:download_id\nNothing | $githubAPI-\u003edeleteDownload($owner, $repo, $download_id) // https://api.github.com/repos/:owner/:repo/downloads/:download_id\n```\n\n## -Comments // https://api.github.com/repos/:owner/:repo/comments\n```php \nObject | $githubAPI-\u003egetListComments($owner, $repo) // https://api.github.com/repos/:owner/:repo/comments\nObject | $githubAPI-\u003egetListCommentsForSingleCommit($owner, $repo, $commit_sha) // https://api.github.com/repos/:owner/:repo/commits/:commit_sha/comments\nObject | $githubAPI-\u003eCreateCommitComment($owner, $repo, $commit_sha, $array=array(\"body\" =\u003e \"\", \"path\" =\u003e \"\", \"postion\" =\u003e 0, \"line\" =\u003e null)) // https://api.github.com/repos/:owner/:repo/commits/:commit_sha/comments\nObject | $githubAPI-\u003eGetCommitComment($owner, $repo, $comment_id) // https://api.github.com/repos/:owner/:repo/comments/:comment_id\nObject | $githubAPI-\u003eUpdateCommitComment($owner, $repo, $comment_id, $array=array(\"body\" =\u003e \"\")) // https://api.github.com/repos/:owner/:repo/commits/:commit_sha/comments\nNothing | $githubAPI-\u003eDeleteCommitComment($owner, $repo, $comment_id) // https://api.github.com/repos/:owner/:repo/comments/:comment_id\n```\n\n# -Collaborators // https://api.github.com/repos/:owner/:repo/collaborators\n```php \nObject | $githubAPI-\u003eGetListCollaborators($owner, $repo) // https://api.github.com/repos/:owner/:repo/collaborators\nObject | $githubAPI-\u003eCheckUserIsCollaborator($owner, $repo, $username) // https://api.github.com/repos/:owner/:repo/collaborators/:username\nObject | $githubAPI-\u003eGetUserPermissionLevel($owner, $repo, $username) // https://api.github.com/repos/:owner/:repo/collaborators/:username/permission\nNothing | $githubAPI-\u003eDeleteUserCollaborator($owner, $repo, $username) // https://api.github.com/repos/:owner/:repo/collaborators/:username\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinj1k%2Fphpgithubapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinj1k%2Fphpgithubapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinj1k%2Fphpgithubapi/lists"}