{"id":21467429,"url":"https://github.com/elusivecodes/fyrerequest","last_synced_at":"2025-07-15T05:31:27.316Z","repository":{"id":62508437,"uuid":"436189241","full_name":"elusivecodes/FyreRequest","owner":"elusivecodes","description":"FyreRequest is a free, open-source HTTP request library for PHP.","archived":false,"fork":false,"pushed_at":"2024-10-27T12:44:28.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-28T15:45:37.122Z","etag":null,"topics":["http","message","php","request"],"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-08T09:29:15.000Z","updated_at":"2024-10-27T12:44:11.000Z","dependencies_parsed_at":"2024-06-29T07:33:52.945Z","dependency_job_id":null,"html_url":"https://github.com/elusivecodes/FyreRequest","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreRequest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreRequest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreRequest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreRequest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elusivecodes","download_url":"https://codeload.github.com/elusivecodes/FyreRequest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226017514,"owners_count":17560527,"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","request"],"created_at":"2024-11-23T08:18:04.620Z","updated_at":"2024-11-23T08:18:05.212Z","avatar_url":"https://github.com/elusivecodes.png","language":"PHP","readme":"# FyreRequest\r\n\r\n**FyreRequest** is a free, open-source immutable HTTP request 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/request\r\n```\r\n\r\nIn PHP:\r\n\r\n```php\r\nuse Fyre\\Http\\Request;\r\n```\r\n\r\n\r\n## Basic Usage\r\n\r\n- `$uri` is a [*Uri*](https://github.com/elusivecodes/FyreURI) and will default to *null*.\r\n- `$options` is an array containing the message options.\r\n    - `method` is a string representing the request method, and will default to \"*get*\".\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\r\n```php\r\n$request = new Request($uri, $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 Method**\r\n\r\nGet the request method.\r\n\r\n```php\r\n$method = $request-\u003egetMethod();\r\n```\r\n\r\n**Get Uri**\r\n\r\nGet the request URI.\r\n\r\n```php\r\n$uri = $request-\u003egetUri();\r\n```\r\n\r\nThis method will return a [*Uri*](https://github.com/elusivecodes/FyreURI).\r\n\r\n**Set Method**\r\n\r\nSet the request method.\r\n\r\n- `$method` is a string representing the request method.\r\n\r\n```php\r\n$newRequest = $request-\u003esetMethod($method);\r\n```\r\n\r\n**Set Uri**\r\n\r\nSet the request URI.\r\n\r\n- `$uri` is a [*Uri*](https://github.com/elusivecodes/FyreURI).\r\n\r\n```php\r\n$newRequest = $request-\u003esetUri($uri);\r\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyrerequest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felusivecodes%2Ffyrerequest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyrerequest/lists"}