NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #452 most downloaded on Packagist
Content Negotiation tools for PHP provided as a standalone library.
Last release 5 years ago
no release in 18 months
Ships unpredictably
gaps range from 1 weeks to 3.4 years
Rarely documented
notes for 7 of 41 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
45 releases · first in 2013
This new release should be fully compatible with PHP 8.1.
This new release should be fully compatible with PHP 8.1.
LanguageNegotiator) by @rtm-ctrlz in #113Full Changelog:
See 3.0.0...3.1.0
One column per quarter.
In fact, the only main benefit is to support PHP 8 , which required some changes that might be considered backward incompatible (see #106 ).
👋 Hi! It's been a long time.
This new major version is very similar to the 2.x version. In fact, the only main benefit is to support PHP 8, which required some changes that might be considered backward incompatible (see #106).
Upgrade should be safe and it's recommended. This library has been very stable over the years so we didn't change a lot of things between the versions 2 and 3. Have fun!
Fixed: do not compare + segments unless wildcards in either accept or priority (cf. #93 / #94 )
Added: handle wildcard "+" segments (cf. #92 )
This is the very first alpha release of the next major version of this library. This version works almost like the current major version (v2) but fixe
This is the very first alpha release of the next major version of this library. This version works almost like the current major version (v2) but fixes a sort of regression for some users that could not be merged into the v2 (cf. version 2.2.1).
💬 Everyone is encouraged to migrate to the v3.
getOrderedElements() (cf. #90)getBest($header, array $priorities, $strict = false) method. This parameter allows to throw exceptions if the Accept header is incorrect (default behavior is to silently ignore this case, cf. release 2.0.3).Fixed: do not compare + segments unless wildcards in either accept or priority (cf. #93 / #94 )
Added: handle wildcard "+" segments (cf. #92 )
I revert the code introduced in version 2.2.0 about 2 hours after having released it because the code changed the public API, and therefore introduced
I revert the code introduced in version 2.2.0 about 2 hours after having released it because the code changed the public API, and therefore introduced a BC break. This version fixes the issue and I am going to publish a new major version for the code previously introduced in 2.2.0.
Please use this version and not 2.2.0
⚠️ PLEASE DO NOT USE THIS VERSION, USE 2.2.1 INSTEAD. SORRY 😕
⚠️ PLEASE DO NOT USE THIS VERSION, USE 2.2.1 INSTEAD. SORRY 😕
Added: a third optional (boolean) parameter is now available in the getBest($header, array $priorities, $strict = false) method. This parameter allows to throw exceptions if the Accept header is incorrect (default behavior is to silently ignore this case, cf. release 2.0.3).
⚠️ PLEASE DO NOT USE THIS VERSION, USE 2.2.1 INSTEAD. SORRY 😕
Added: support for quality-of-source factor (cf. #77 )
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Pre-release Pre-release Compare
Pre-release
Pre-release
Compare
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →