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

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

aphiria/content-negotiation
===========================

The Aphiria content negotiation library

1.x-dev(3mo ago)04072MITPHPPHP ^8.4CI passing

Since Dec 19Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/aphiria/content-negotiation)[ Packagist](https://packagist.org/packages/aphiria/content-negotiation)[ Docs](https://www.aphiria.com)[ GitHub Sponsors](https://github.com/sponsors/davidbyoung)[ RSS](/packages/aphiria-content-negotiation/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelogDependencies (7)Versions (13)Used By (2)

[![](https://camo.githubusercontent.com/b524a39ab8922b927ed94708692e2de878abfe1f9d859dbbb4d82eab6ab59156/68747470733a2f2f7777772e617068697269612e636f6d2f696d616765732f617068697269612d6c6f676f2e737667)](https://www.aphiria.com "Aphiria")

[![](https://github.com/aphiria/content-negotiation/workflows/ci/badge.svg)](https://github.com/aphiria/content-negotiation/actions)[![Coverage Status](https://camo.githubusercontent.com/890dbccf5a6a23c04012c1ab8b0863146d3513d1577d2027f2032b4e10195999/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f617068697269612f636f6e74656e742d6e65676f74696174696f6e2f62616467652e7376673f6272616e63683d312e78)](https://coveralls.io/github/aphiria/content-negotiation?branch=1.x)[![](https://camo.githubusercontent.com/f37e7f4eca0e702d0344a3cd571d4178e7ec72abbad1654063a4a1464e39069a/68747470733a2f2f706f7365722e707567782e6f72672f617068697269612f636f6e74656e742d6e65676f74696174696f6e2f762f737461626c652e737667)](https://packagist.org/packages/aphiria/content-negotiation)[![](https://camo.githubusercontent.com/2832db0c59fc448d9e56fcabe986e78de56f9d030c95203c2ab947c17e27690f/68747470733a2f2f706f7365722e707567782e6f72672f617068697269612f636f6e74656e742d6e65676f74696174696f6e2f762f756e737461626c652e737667)](https://packagist.org/packages/aphiria/content-negotiation)[![](https://camo.githubusercontent.com/61dc316f859f4f69b2a79f878f68b900156d67ed9d840b2c888520448f3ad780/68747470733a2f2f706f7365722e707567782e6f72672f617068697269612f636f6e74656e742d6e65676f74696174696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/aphiria/content-negotiation)

Content Negotiation
===================

[](#content-negotiation)

> **Note:** This library is not stable yet.

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

[](#installation)

This library can be installed via [Composer](https://getcomposer.org/download/):

```
composer require aphiria/content-negotiation:^1.0@dev
```

Documentation
-------------

[](#documentation)

Full documentation is available [here](https://www.aphiria.com/docs/1.x/content-negotiation).

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance78

Regular maintenance activity

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 98.8% 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 ~154 days

Recently: every ~284 days

Total

13

Last Release

119d ago

Major Versions

0.x-dev → v1.0.0-alpha12020-12-20

PHP version history (4 changes)0.x-devPHP &gt;=8.0

v1.0.0-alpha5PHP &gt;=8.1

v1.0.0-alpha8PHP ^8.2

v1.0.0-alpha10PHP ^8.4

### Community

Maintainers

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

---

Top Contributors

[![davidbyoung](https://avatars.githubusercontent.com/u/6652430?v=4)](https://github.com/davidbyoung "davidbyoung (81 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

content-negotiationhttpphpphpcontent negotiationmedia type

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/aphiria-content-negotiation/health.svg)

```
[![Health](https://phpackages.com/badges/aphiria-content-negotiation/health.svg)](https://phpackages.com/packages/aphiria-content-negotiation)
```

###  Alternatives

[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k136](/packages/symfony-ai-platform)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[symfony/ai-agent

PHP library for building agentic applications.

30536.7k44](/packages/symfony-ai-agent)[morrislaptop/laravel-popo-caster

Automatically cast JSON columns to rich PHP objects in Laravel using Symfony's Serializer

27643.8k](/packages/morrislaptop-laravel-popo-caster)

PHPackages © 2026

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