{"id":21467447,"url":"https://github.com/elusivecodes/fyreheader","last_synced_at":"2025-07-15T05:31:37.222Z","repository":{"id":62508482,"uuid":"433367459","full_name":"elusivecodes/FyreHeader","owner":"elusivecodes","description":"FyreHeader is a free, open-source HTTP header library for PHP.","archived":false,"fork":false,"pushed_at":"2024-06-29T01:51:41.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-30T07:57:55.770Z","etag":null,"topics":["header","http","php"],"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-11-30T09:23:37.000Z","updated_at":"2024-06-29T01:51:29.000Z","dependencies_parsed_at":"2024-06-29T02:42:34.051Z","dependency_job_id":"d10b9bcc-c872-4dae-856a-0d0b3a15aa03","html_url":"https://github.com/elusivecodes/FyreHeader","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreHeader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreHeader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreHeader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreHeader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elusivecodes","download_url":"https://codeload.github.com/elusivecodes/FyreHeader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226017581,"owners_count":17560539,"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":["header","http","php"],"created_at":"2024-11-23T08:18:07.980Z","updated_at":"2024-11-23T08:18:09.487Z","avatar_url":"https://github.com/elusivecodes.png","language":"PHP","readme":"# FyreHeader\r\n\r\n**FyreHeader** is a free, open-source immutable HTTP header 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/header\r\n```\r\n\r\nIn PHP:\r\n\r\n```php\r\nuse Fyre\\Http\\Header;\r\n```\r\n\r\n\r\n## Basic Usage\r\n\r\n- `$name` is a string representing the header name.\r\n- `$value` is a string or array representing the header value.\r\n\r\n```php\r\n$header = new Header($name, $value);\r\n```\r\n\r\n\r\n## Methods\r\n\r\n**Append Value**\r\n\r\nAppend a value to the header.\r\n\r\n- `$value` is a string representing the value to append.\r\n\r\n```php\r\n$newHeader = $header-\u003eappendValue($value);\r\n```\r\n\r\n**Get Header String**\r\n\r\nGet the header string.\r\n\r\n```php\r\n$headerString = $header-\u003egetHeaderString();\r\n```\r\n\r\n**Get Name**\r\n\r\nGet the header name.\r\n\r\n```php\r\n$name = $header-\u003egetName();\r\n```\r\n\r\n**Get Value**\r\n\r\nGet the header value.\r\n\r\n```php\r\n$value = $header-\u003egetValue();\r\n```\r\n\r\n**Get Value String**\r\n\r\nGet the header value as a string.\r\n\r\n```php\r\n$value = $header-\u003egetValueString();\r\n```\r\n\r\n**Prepend Value**\r\n\r\nPrepend a value to the header.\r\n\r\n- `$value` is a string representing the value to prepend.\r\n\r\n```php\r\n$newHeader = $header-\u003eprependValue($value);\r\n```\r\n\r\n**Set Value**\r\n\r\nSet the header value.\r\n\r\n- `$value` is a string representing the header value.\r\n\r\n```php\r\n$newHeader = $header-\u003esetValue($value);\r\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreheader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felusivecodes%2Ffyreheader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyreheader/lists"}