{"id":21467440,"url":"https://github.com/elusivecodes/fyreresponse","last_synced_at":"2025-10-20T10:21:44.165Z","repository":{"id":56982780,"uuid":"436179421","full_name":"elusivecodes/FyreResponse","owner":"elusivecodes","description":"FyreResponse is a free, open-source HTTP response library for PHP.","archived":false,"fork":false,"pushed_at":"2024-10-27T12:45:58.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-27T14:22:53.971Z","etag":null,"topics":["http","message","php","response"],"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/elusivecodes.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-08T08:55:40.000Z","updated_at":"2024-06-29T06:24:22.000Z","dependencies_parsed_at":"2024-06-01T16:25:33.725Z","dependency_job_id":"8a011f92-8f25-436b-8261-5001f0716cc0","html_url":"https://github.com/elusivecodes/FyreResponse","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"d87950c657013fe1c824f5fc5fb82c069807402a"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreResponse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreResponse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreResponse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreResponse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elusivecodes","download_url":"https://codeload.github.com/elusivecodes/FyreResponse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226017531,"owners_count":17560532,"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","message","php","response"],"created_at":"2024-11-23T08:18:07.693Z","updated_at":"2025-10-20T10:21:44.052Z","avatar_url":"https://github.com/elusivecodes.png","language":"PHP","readme":"# FyreResponse\r\n\r\n**FyreResponse** is a free, open-source immutable HTTP response library for *PHP*.\r\n\r\n\r\n## Table Of Contents\r\n- [Installation](#installation)\r\n- [Basic Usage](#basic-usage)\r\n- [Methods](#methods)\r\n\r\n\r\n\r\n## Installation\r\n\r\n**Using Composer**\r\n\r\n```\r\ncomposer require fyre/response\r\n```\r\n\r\nIn PHP:\r\n\r\n```php\r\nuse Fyre\\Http\\Response;\r\n```\r\n\r\n\r\n## Basic Usage\r\n\r\n- `$options` is an array containing the message options.\r\n    - `body` is a string representing the message body, and will default to \"\".\r\n    - `headers` is an array containing headers to set, and will default to *[]*.\r\n    - `protocolVersion` is a string representing the protocol version, and will default to \"*1.1*\".\r\n    - `statusCode` is a number representing the status code, and will default to *200*.\r\n\r\n```php\r\n$response = new Response($options);\r\n```\r\n\r\n\r\n## Methods\r\n\r\nThis class extends the [*Message*](https://github.com/elusivecodes/FyreMessage) class.\r\n\r\n**Get Reason**\r\n\r\nGet the response reason phrase.\r\n\r\n```php\r\n$reason = $response-\u003egetReason();\r\n```\r\n\r\n**Get Status Code**\r\n\r\nGet the status code.\r\n\r\n```php\r\n$code = $response-\u003egetStatusCode();\r\n```\r\n\r\n**Set Status Code**\r\n\r\nSet the status code.\r\n\r\n- `$code` is a number representing the status code.\r\n\r\n```php\r\n$newResponse = $response-\u003esetStatusCode($code);\r\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreresponse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felusivecodes%2Ffyreresponse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreresponse/lists"}