{"id":21467442,"url":"https://github.com/elusivecodes/fyrenegotiate","last_synced_at":"2025-07-15T05:31:34.164Z","repository":{"id":62508440,"uuid":"434175672","full_name":"elusivecodes/FyreNegotiate","owner":"elusivecodes","description":"FyreNegotiate is a free, open-source negotiation library for PHP.","archived":false,"fork":false,"pushed_at":"2024-10-28T08:18:02.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-28T09:13:40.745Z","etag":null,"topics":["content-type","encoding","language","negotiate","negotiator","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-12-02T10:27:24.000Z","updated_at":"2024-10-28T08:17:50.000Z","dependencies_parsed_at":"2023-11-28T14:47:44.033Z","dependency_job_id":null,"html_url":"https://github.com/elusivecodes/FyreNegotiate","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreNegotiate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreNegotiate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreNegotiate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFyreNegotiate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elusivecodes","download_url":"https://codeload.github.com/elusivecodes/FyreNegotiate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226017526,"owners_count":17560531,"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":["content-type","encoding","language","negotiate","negotiator","php"],"created_at":"2024-11-23T08:18:07.710Z","updated_at":"2024-11-23T08:18:08.243Z","avatar_url":"https://github.com/elusivecodes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FyreNegotiate\r\n\r\n**FyreNegotiate** is a free, open-source HTTP negotiation library for *PHP*.\r\n\r\n\r\n## Table Of Contents\r\n- [Installation](#installation)\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/negotiate\r\n```\r\n\r\nIn PHP:\r\n\r\n```php\r\nuse Fyre\\Http\\Negotiate;\r\n```\r\n\r\n\r\n## Methods\r\n\r\n**Content**\r\n\r\nNegotiate a content type.\r\n\r\n- `$accepted` is a string representing the `Accept` header.\r\n- `$supported` is an array containing the supported content values.\r\n- `$strict` is a boolean indicating whether to not use a default fallback, and will default to *false*.\r\n\r\n```php\r\nNegotiate::content($accepted, $supported, $strict);\r\n```\r\n\r\n**Encoding**\r\n\r\nNegotiate an encoding.\r\n\r\n- `$accepted` is a string representing the `Accept-Encoding` header.\r\n- `$supported` is an array containing the supported encoding values.\r\n\r\n```php\r\nNegotiate::encoding($accepted, $supported);\r\n```\r\n\r\n**Language**\r\n\r\nNegotiate a language.\r\n\r\n- `$accepted` is a string representing the `Accept-Language` header.\r\n- `$supported` is an array containing the supported language values.\r\n\r\n```php\r\nNegotiate::language($accepted, $supported);\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyrenegotiate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felusivecodes%2Ffyrenegotiate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffyrenegotiate/lists"}