PHPackages                             aura/accept - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. aura/accept

ActiveLibrary[HTTP &amp; Networking](/categories/http)

aura/accept
===========

Provides content-negotiation tools using Accept\* headers.

4.0.1(3mo ago)34552.0k↓33.3%99MITPHPPHP ^7.2 || ^8.0CI failing

Since Oct 5Pushed 3mo ago9 watchersCompare

[ Source](https://github.com/auraphp/Aura.Accept)[ Packagist](https://packagist.org/packages/aura/accept)[ Docs](https://github.com/auraphp/Aura.Accept)[ RSS](/packages/aura-accept/feed)WikiDiscussions 4.x Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (9)

Aura.Accept
===========

[](#auraaccept)

Provides content-negotiation tools using `Accept*` headers.

Installation and Autoloading
----------------------------

[](#installation-and-autoloading)

This package is installable and PSR-4 autoloadable via Composer as [aura/accept](https://packagist.org/packages/aura/accept).

Alternatively, [download a release](https://github.com/auraphp/Aura.Accept/releases), or clone this repository, then map the `Aura\Accept\` namespace to the package `src/` directory.

Dependencies
------------

[](#dependencies)

This package requires PHP 7.2 or later. It has been tested on PHP 7.2 - 8.1. We recommend using the latest available version of PHP as a matter of principle.

Aura library packages may sometimes depend on external interfaces, but never on external implementations. This allows compliance with community standards without compromising flexibility. For specifics, please examine the package [composer.json](./composer.json) file.

### Quality

[](#quality)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fde5d47452a8fe1703da7f19a310427232f69c758d55c4cf8a3f70f70c6814c8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f617572617068702f417572612e4163636570742f6261646765732f7175616c6974792d73636f72652e706e673f623d342e78)](https://scrutinizer-ci.com/g/auraphp/Aura.Accept/)[![codecov](https://camo.githubusercontent.com/4ddc938b4d44081913964b5d4f0640779c87e8eb153368911f81910e656e68e0/68747470733a2f2f636f6465636f762e696f2f67682f617572617068702f417572612e4163636570742f6272616e63682f342e782f67726170682f62616467652e7376673f746f6b656e3d554153446f754c787963)](https://codecov.io/gh/auraphp/Aura.Accept)[![Continuous Integration](https://github.com/auraphp/Aura.Accept/actions/workflows/continuous-integration.yml/badge.svg?branch=4.x)](https://github.com/auraphp/Aura.Accept/actions/workflows/continuous-integration.yml)

To run the [PHPUnit](http://phpunit.de/manual/) unit tests at the command line, issue `composer install` and then `vendor/bin/phpunit` at the package root. This requires [Composer](http://getcomposer.org/) to be available as `composer`.

This library attempts to comply with [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md), [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md), and [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md). If you notice compliance oversights, please send a patch via pull request.

### Community

[](#community)

To ask questions, provide feedback, or otherwise communicate with the Aura community, please join our [Google Group](http://groups.google.com/group/auraphp), follow [@auraphp on Twitter](http://twitter.com/auraphp), or chat with us on #auraphp on Freenode.

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

[](#documentation)

This package is fully documented [here](./docs/index.md).

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance78

Regular maintenance activity

Popularity47

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~343 days

Recently: every ~809 days

Total

13

Last Release

118d ago

Major Versions

2.x-dev → 4.0.02022-03-26

PHP version history (2 changes)2.0.0-beta1PHP &gt;=5.3.0

4.0.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25754?v=4)[Paul M. Jones](/maintainers/pmjones)[@pmjones](https://github.com/pmjones)

![](https://www.gravatar.com/avatar/29dba0e6add8d89fd3fc6126b213d5d2f57538ea78318963025d6ea98db34161?d=identicon)[harikt](/maintainers/harikt)

---

Top Contributors

[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (41 commits)")[![koriym](https://avatars.githubusercontent.com/u/529021?v=4)](https://github.com/koriym "koriym (19 commits)")[![galactic-void](https://avatars.githubusercontent.com/u/40361?v=4)](https://github.com/galactic-void "galactic-void (17 commits)")[![jakeasmith](https://avatars.githubusercontent.com/u/234832?v=4)](https://github.com/jakeasmith "jakeasmith (5 commits)")[![tomkyle](https://avatars.githubusercontent.com/u/412560?v=4)](https://github.com/tomkyle "tomkyle (3 commits)")[![jelofson](https://avatars.githubusercontent.com/u/497112?v=4)](https://github.com/jelofson "jelofson (2 commits)")[![iansltx](https://avatars.githubusercontent.com/u/472804?v=4)](https://github.com/iansltx "iansltx (1 commits)")[![garoevans](https://avatars.githubusercontent.com/u/1016708?v=4)](https://github.com/garoevans "garoevans (1 commits)")[![dshafik](https://avatars.githubusercontent.com/u/58074?v=4)](https://github.com/dshafik "dshafik (1 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![ralouphie](https://avatars.githubusercontent.com/u/1500005?v=4)](https://github.com/ralouphie "ralouphie (1 commits)")[![StuTheBearded](https://avatars.githubusercontent.com/u/13631079?v=4)](https://github.com/StuTheBearded "StuTheBearded (1 commits)")[![gomboc](https://avatars.githubusercontent.com/u/1145653?v=4)](https://github.com/gomboc "gomboc (1 commits)")[![dhrrgn](https://avatars.githubusercontent.com/u/149921?v=4)](https://github.com/dhrrgn "dhrrgn (1 commits)")

---

Tags

auracomponentcontent-negotiationnegotiationphpstandalone-php-libraryacceptcontent negotiationaccept-languagecontent-typeaccept-charsetaccept-encodingmedia type

### Embed Badge

![Health badge](/badges/aura-accept/health.svg)

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

###  Alternatives

[ptlis/conneg

Tools for performing content negotiation.

364.9k1](/packages/ptlis-conneg)[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[bitworking/mimeparse

Basic functions for handling mime-types.

41181.6k1](/packages/bitworking-mimeparse)[illuminate/http

The Illuminate Http package.

11936.0M5.1k](/packages/illuminate-http)[aphiria/aphiria

The Aphiria framework

1427.7k2](/packages/aphiria-aphiria)[webignition/internet-media-type

PHP model of an http://en.wikipedia.org/wiki/Internet\_media\_type

10146.2k13](/packages/webignition-internet-media-type)

PHPackages © 2026

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