{"id":16193187,"url":"https://github.com/koriym/koriym.httpconstants","last_synced_at":"2025-03-19T04:30:34.396Z","repository":{"id":46569956,"uuid":"41621026","full_name":"koriym/Koriym.HttpConstants","owner":"koriym","description":"Constants for the HTTP protocol","archived":false,"fork":false,"pushed_at":"2021-10-12T11:02:53.000Z","size":20,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-28T15:18:02.406Z","etag":null,"topics":["http-code"],"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/koriym.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":"2015-08-30T07:59:58.000Z","updated_at":"2022-03-10T02:20:40.000Z","dependencies_parsed_at":"2022-09-04T10:32:10.172Z","dependency_job_id":null,"html_url":"https://github.com/koriym/Koriym.HttpConstants","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koriym%2FKoriym.HttpConstants","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koriym%2FKoriym.HttpConstants/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koriym%2FKoriym.HttpConstants/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koriym%2FKoriym.HttpConstants/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koriym","download_url":"https://codeload.github.com/koriym/Koriym.HttpConstants/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243968470,"owners_count":20376400,"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":["http-code"],"created_at":"2024-10-10T08:14:17.967Z","updated_at":"2025-03-19T04:30:33.965Z","avatar_url":"https://github.com/koriym.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koriym.HttpConstants\n\nContains the values of status codes, request method, and headers for the Hypertext Transfer Protocol (HTTP). \nConstants only.\n\n## Example\n\n```php\n\nuse Koriym\\HttpConstants\\HttpStatusCode;\nuse Koriym\\HttpConstants\\RequestHeader;\nuse Koriym\\HttpConstants\\ResponseHeader;\nuse Koriym\\HttpConstants\\MediaType;\nuse Koriym\\HttpConstants\\Method;\n\nhttp_response_code(StatusCode::BAD_REQUEST);\nheader(ResponseHeader::CONTENT_TYPE . ': ' . MediaType::APPLICATION_JSON_API);\n// Content-Type: application/vnd.api+json\nheader(ResponseHeader::CACHE_CONTROL . ': max-age=3600');\n// Cache-Control: max-age=3600\n```\n\n### Install\n\n    $ composer require koriym/http-constants\n\n\nSee also [PSR Http Message Util](https://github.com/php-fig/http-message-util).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoriym%2Fkoriym.httpconstants","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoriym%2Fkoriym.httpconstants","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoriym%2Fkoriym.httpconstants/lists"}