{"id":36332612,"url":"https://github.com/rayanlevert/http","last_synced_at":"2026-01-11T12:01:32.523Z","repository":{"id":237531912,"uuid":"728088634","full_name":"rayanlevert/http","owner":"rayanlevert","description":"PHP enumerations for HTTP codes and methods","archived":false,"fork":false,"pushed_at":"2024-07-16T20:24:12.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T04:12:44.891Z","etag":null,"topics":["enumeration","http-code","http-method","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rayanlevert.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-06T07:51:18.000Z","updated_at":"2024-07-16T20:24:15.000Z","dependencies_parsed_at":"2024-05-02T12:10:25.841Z","dependency_job_id":"d6c98203-1d4c-4832-9da3-80de97161423","html_url":"https://github.com/rayanlevert/http","commit_stats":null,"previous_names":["rayanlevert/http","rayanlevert/http-message"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rayanlevert/http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayanlevert%2Fhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayanlevert%2Fhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayanlevert%2Fhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayanlevert%2Fhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rayanlevert","download_url":"https://codeload.github.com/rayanlevert/http/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayanlevert%2Fhttp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28302002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["enumeration","http-code","http-method","php"],"created_at":"2026-01-11T12:00:54.678Z","updated_at":"2026-01-11T12:01:32.478Z","avatar_url":"https://github.com/rayanlevert.png","language":"PHP","readme":"## Simple functionalites handling HTTP (codes and methods) via PHP enumerations (from 8.1)\n\n[![Packagist Version](https://img.shields.io/packagist/v/rayanlevert/http)](https://packagist.org/packages/rayanlevert/http)\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/rayanlevert/http)](https://packagist.org/packages/rayanlevert/http)\n[![codecov](https://codecov.io/gh/rayanlevert/http/branch/main/graph/badge.svg)](https://codecov.io/gh/rayanlevert/http)\n\n\u003e Refer to php-fig https://github.com/php-fig/http-message-util\n\n### RayanLevert\\Http\\Codes\n\nPHP enumeration with HTTP codes [RayanLevert\\Http\\Codes](src/Codes.php)\n\n### DisDev\\Http\\Methods\n\nPHP enumeration with HTTP methods\n\n```php\nenum Methods: string\n{\n    case HEAD    = 'HEAD';\n    case GET     = 'GET';\n    case POST    = 'POST';\n    case PUT     = 'PUT';\n    case PATCH   = 'PATCH';\n    case DELETE  = 'DELETE';\n    case PURGE   = 'PURGE';\n    case OPTIONS = 'OPTIONS';\n    case TRACE   = 'TRACE';\n    case CONNECT = 'CONNECT';\n}\n\n\\RayanLevert\\Http\\Methods::HEAD // 'HEAD'\n```\n\n### RayanLevert\\Http\\Exception\n\nPHP exception initialized with an HTTP code with `RayanLevert\\Http\\Codes`\n\n```php\n// HTTP 401 error\n$oException = new \\RayanLevert\\Http\\Exception('Unauthorized', \\RayanLevert\\Http\\Codes::CLIENT_UNAUTHORIZED)\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayanlevert%2Fhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frayanlevert%2Fhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayanlevert%2Fhttp/lists"}