PHPackages                             chubbyphp/chubbyphp-negotiation - 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. chubbyphp/chubbyphp-negotiation

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

chubbyphp/chubbyphp-negotiation
===============================

Chubbyphp Negotiation

2.3.1(4mo ago)299.0k↓32.7%21MITPHPPHP ^8.3CI passing

Since Sep 3Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/chubbyphp/chubbyphp-negotiation)[ Packagist](https://packagist.org/packages/chubbyphp/chubbyphp-negotiation)[ RSS](/packages/chubbyphp-chubbyphp-negotiation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (13)Versions (30)Used By (1)

chubbyphp-negotiation
=====================

[](#chubbyphp-negotiation)

[![CI](https://github.com/chubbyphp/chubbyphp-negotiation/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-negotiation/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/3b3461198e9cd29cec802d0b798f7dd2b5ede06413ded6204915fe47388a1c2a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6368756262797068702f6368756262797068702d6e65676f74696174696f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/chubbyphp/chubbyphp-negotiation?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/0070f62eb2d5c408540ffb76355e0aeb2cf41c7454bf4dbd50c3dea08c5d4c10/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466368756262797068702532466368756262797068702d6e65676f74696174696f6e2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-negotiation/master)[![Latest Stable Version](https://camo.githubusercontent.com/d9c9563022f8f75c37d54394a8fe11f8d42e70e265d0dd4c110ceba238e4dadd/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6e65676f74696174696f6e2f76)](https://packagist.org/packages/chubbyphp/chubbyphp-negotiation)[![Total Downloads](https://camo.githubusercontent.com/5b0e69027126793c925a9c8a9ce18fa6c7144879ce21513aeba0e27006135ee4/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6e65676f74696174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/chubbyphp/chubbyphp-negotiation)[![Monthly Downloads](https://camo.githubusercontent.com/4b4d2f42e05980feb99cfb68631942d546f44efe35b5678c6a1eeb855e19407a/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6e65676f74696174696f6e2f642f6d6f6e74686c79)](https://packagist.org/packages/chubbyphp/chubbyphp-negotiation)

[![bugs](https://camo.githubusercontent.com/247c2d0f1d60c525ea2e6a4312f074da74836f11ac8b20a9b8dfe805aef7b839/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6e65676f74696174696f6e266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-negotiation)[![code_smells](https://camo.githubusercontent.com/a955bba463b4dd81a0a64ae493a5864b621d332f911d1b3a7eb7bea346e16246/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6e65676f74696174696f6e266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-negotiation)[![coverage](https://camo.githubusercontent.com/4029aff8d9c2c23b534ead65c27a4d9a57c19ab4ba68b934ea65420039b464c5/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6e65676f74696174696f6e266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-negotiation)[![duplicated_lines_density](https://camo.githubusercontent.com/5b8b0c44df4a268727a9ce5880b1ae280753d1c95b27eed85c55621eaea7a0e8/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6e65676f74696174696f6e266d65747269633d6475706c6963617465645f6c696e65735f64656e73697479)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-negotiation)[![ncloc](https://camo.githubusercontent.com/67fc9d44a3c1f3e3b4888865a7e01cee8b51585e7dfffc7e10c9d97caf7f4dc0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6e65676f74696174696f6e266d65747269633d6e636c6f63)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-negotiation)[![sqale_rating](https://camo.githubusercontent.com/4c04dfee530da56eabc97b3bbc60d10ce6426fb1668a75ad623cbf034ef6c58f/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6e65676f74696174696f6e266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-negotiation)[![alert_status](https://camo.githubusercontent.com/e12a34586cad557b5a467bcbaf9b6a39aa46f3c3a97e8c8da7d6ee32ec2b6338/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6e65676f74696174696f6e266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-negotiation)[![reliability_rating](https://camo.githubusercontent.com/308f6e84793c55d12d37c3bfc6b1d2cdc19c56581877ce2bbed12814679d78af/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6e65676f74696174696f6e266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-negotiation)[![security_rating](https://camo.githubusercontent.com/6178fe53f3e920710bbb5b93898ed7c3ccaeaf27864acb654664a19dd5b70541/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6e65676f74696174696f6e266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-negotiation)[![sqale_index](https://camo.githubusercontent.com/09d86dfcd0ea1acabcc4994e343b7df570a145355b0c9122ef2e1c6569aca91a/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6e65676f74696174696f6e266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-negotiation)[![vulnerabilities](https://camo.githubusercontent.com/63d874e07bd31c0fe271564cc0c00d725b98487b7c56bece80d22c2325cc7ade/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6e65676f74696174696f6e266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-negotiation)

Description
-----------

[](#description)

A simple negotiation library.

Requirements
------------

[](#requirements)

- php: ^8.3
- psr/http-message: ^1.1|^2.0

Suggest
-------

[](#suggest)

- chubbyphp/chubbyphp-container: ^2.3
- chubbyphp/chubbyphp-http-exception: ^1.2
- chubbyphp/chubbyphp-laminas-config-factory: ^1.4
- pimple/pimple: ^3.6
- psr/http-server-middleware: ^1.0.2

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

[](#installation)

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-negotiation](https://packagist.org/packages/chubbyphp/chubbyphp-negotiation).

```
composer require chubbyphp/chubbyphp-negotiation "^2.3"
```

Usage
-----

[](#usage)

### AcceptLanguageNegotiator

[](#acceptlanguagenegotiator)

```
