{"id":15984941,"url":"https://github.com/divineomega/php-github-status-api","last_synced_at":"2025-03-18T01:30:26.059Z","repository":{"id":56969647,"uuid":"160883220","full_name":"DivineOmega/php-github-status-api","owner":"DivineOmega","description":"Programmatically determine if GitHub is working well, or experiencing issues","archived":false,"fork":false,"pushed_at":"2019-04-16T22:16:20.000Z","size":14,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T06:04:32.463Z","etag":null,"topics":["github","github-api","github-status"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DivineOmega.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-07T22:49:18.000Z","updated_at":"2023-12-05T15:29:15.000Z","dependencies_parsed_at":"2022-08-21T06:40:28.771Z","dependency_job_id":null,"html_url":"https://github.com/DivineOmega/php-github-status-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-github-status-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-github-status-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-github-status-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-github-status-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DivineOmega","download_url":"https://codeload.github.com/DivineOmega/php-github-status-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243893850,"owners_count":20364918,"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","github-api","github-status"],"created_at":"2024-10-08T02:11:30.684Z","updated_at":"2025-03-18T01:30:25.798Z","avatar_url":"https://github.com/DivineOmega.png","language":"PHP","readme":"# PHP GitHub Status API\n\n[![Build Status](https://travis-ci.com/DivineOmega/php-github-status-api.svg?branch=master)](https://travis-ci.com/DivineOmega/php-github-status-api)\n\n---\n\n⚠️ **Warning:** As of 11th December 2018, GitHub have deprecated the status page that this package parses, so current status information may not be up-to-date. More information: https://blog.github.com/2018-12-11-introducing-the-new-github-status-site/\n\n---\n\nThis package provides a way to programmatically determine if GitHub is working \nwell, or experiencing issues.\nBoth the current status and historical statuses can be looked up by date.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg height=\"500\" src=\"https://user-images.githubusercontent.com/650645/49678157-77f06f00-fa7a-11e8-857c-0586751a3540.png\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/divineomega/github-status-api/stats\"\u003e\n        \u003cimg src=\"https://img.shields.io/packagist/dt/divineomega/github-status-api.svg\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\nTo install PHP GitHub Status API, just run the following composer command.\n\n```bash\ncomposer require divineomega/github-status-api\n```\n\nRemember to include the `vendor/autoload.php` file if your framework does not \ndo this for you.\n\n## Usage\n\nTo check the state of GitHub currently, simply create a new `Client` object,\nand call its `status` method. You can optionally pass a `Carbon` date object\nto the `status` method to retrieve a historical status.\n\n```php\nuse Carbon\\Carbon;\nuse DivineOmega\\GitHubStatusApi\\Client;\nuse DivineOmega\\GitHubStatusApi\\Enums\\GitHubStatus;\n\nrequire_once 'vendor/autoload.php';\n\n$status    = (new Client())-\u003estatus();\n// $status = (new Client())-\u003estatus(Carbon::parse('2018-12-06 17:00'));\n\nswitch ($status) {\n    case GitHubStatus::GOOD:\n        echo 'GitHub is up! No issues reported.';\n        break;\n\n    case GitHubStatus::MINOR:\n        echo 'GitHub is experiencing minor issues.';\n        break;\n\n    case GitHubStatus::MAJOR:\n        echo 'GitHub is experiencing major issues.';\n        break;\n\n    case GitHubStatus::UNKNOWN:\n        echo 'Unable to determine GitHub\\'s status.';\n        break;\n}\n\necho PHP_EOL;\n``` \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fphp-github-status-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivineomega%2Fphp-github-status-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fphp-github-status-api/lists"}