PHPackages                             fyre/negotiate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. fyre/negotiate

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fyre/negotiate
==============

A negotiation library.

v3.0.2(8mo ago)1333↓84.6%1MITPHP

Since Dec 9Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/elusivecodes/FyreNegotiate)[ Packagist](https://packagist.org/packages/fyre/negotiate)[ RSS](/packages/fyre-negotiate/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (4)Versions (22)Used By (1)

FyreNegotiate
=============

[](#fyrenegotiate)

**FyreNegotiate** is a free, open-source HTTP negotiation library for *PHP*.

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Methods](#methods)

Installation
------------

[](#installation)

**Using Composer**

```
composer require fyre/negotiate

```

In PHP:

```
use Fyre\Http\Negotiate;
```

Methods
-------

[](#methods)

**Content**

Negotiate a content type.

- `$accepted` is a string representing the `Accept` header.
- `$supported` is an array containing the supported content values.
- `$strict` is a boolean indicating whether to not use a default fallback, and will default to *false*.

```
Negotiate::content($accepted, $supported, $strict);
```

**Encoding**

Negotiate an encoding.

- `$accepted` is a string representing the `Accept-Encoding` header.
- `$supported` is an array containing the supported encoding values.

```
Negotiate::encoding($accepted, $supported);
```

**Language**

Negotiate a language.

- `$accepted` is a string representing the `Accept-Language` header.
- `$supported` is an array containing the supported language values.

```
Negotiate::language($accepted, $supported);
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance61

Regular maintenance activity

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~70 days

Recently: every ~17 days

Total

21

Last Release

245d ago

Major Versions

v1.0.6 → v2.02023-07-08

v2.0.12 → v3.02025-09-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/fad81fd5941e3a637c8a5749d05ae3ed9314d5e2fee57f59c3d9ec3b41259c6b?d=identicon)[elusivecodes](/maintainers/elusivecodes)

---

Top Contributors

[![elusivecodes](https://avatars.githubusercontent.com/u/18050480?v=4)](https://github.com/elusivecodes "elusivecodes (17 commits)")

---

Tags

content-typeencodinglanguagenegotiatenegotiatorphp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/fyre-negotiate/health.svg)

```
[![Health](https://phpackages.com/badges/fyre-negotiate/health.svg)](https://phpackages.com/packages/fyre-negotiate)
```

###  Alternatives

[adamwojs/php-cs-fixer-phpdoc-force-fqcn

181.2M61](/packages/adamwojs-php-cs-fixer-phpdoc-force-fqcn)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
