willdurand/Negotiation
Content Negotiation tools for PHP. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4975
- days_rel: n/a
- days_push: 1126
- n_releases_24m: 0
Adoption not part of the score
1419 stars · 64 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A standalone, dependency-free PHP library implementing HTTP content negotiation per RFC 7231. It negotiates media types, languages, encodings, and charsets from Accept-style headers against a list of priorities.
Use cases
- negotiate response format from Accept headers in a PHP API
- pick the best language based on Accept-Language header
- resolve charset and encoding preferences from HTTP requests
- implement RFC 7231 content negotiation in any PHP framework
- serve HTML or JSON depending on client preferences
When to choose
- you need standards-compliant content negotiation in PHP
- you want a small library with zero dependencies
- you need media type, language, charset, and encoding negotiation in one package
When to avoid
- your framework already provides built-in content negotiation
- you are not working in PHP
- you need full HTTP request/response handling rather than just header negotiation
Facets
library · maturity maintenance
http-server middleware web-development backend apis php content-negotiation rfc7231 accept-header http composer
2 sources
- readme: https://github.com/willdurand/Negotiation · fetched 2026-08-28 · 4346df06d4b6
- homepage: https://williamdurand.fr/Negotiation/ · fetched 2026-08-29 · ea69a311aea5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| willdurand/Negotiation | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="willdurand/Negotiation")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem