Download the PHP package elife/content-negotiator without Composer
On this page you can find all versions of the php package elife/content-negotiator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download elife/content-negotiator
More information about elife/content-negotiator
Files in elife/content-negotiator
Download elife/content-negotiator
More information about elife/content-negotiator
Files in elife/content-negotiator
Vendor elife
Package content-negotiator
Short Description eLife Sciences content negotiator
License MIT
Package content-negotiator
Short Description eLife Sciences content negotiator
License MIT
Please rate this library. Is it a good library?
Informations about the package content-negotiator
eLife content negotiator for PHP
This library provides a wrapper around Negotiation.
Dependencies
- Composer
- PHP 7
Installation
composer require elife/content-negotiator
Set up
Silex
When using symfony/http-kernel
3.1+, you can type-hint an argument on your controller with one of the following types and the result of the negotiation will be used:
Negotiator | Type |
---|---|
$app['negotiate.accept'] |
Negotiation\Accept |
$app['negotiate.accept_charset'] |
Negotiation\AcceptCharset |
$app['negotiate.accept_encoding'] |
Negotiation\AcceptEncoding |
$app['negotiate.accept_language'] |
Negotiation\AcceptLanguage |
Running the tests
vendor/bin/phpunit
All versions of content-negotiator with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1 || ^8.0
symfony/http-foundation Version ^3.4.35 || ^4.4 || ^5.0
symfony/http-kernel Version ^3.4 || ^4.4 || ^5.0
willdurand/negotiation Version ^2.0.2 || ^3.1
symfony/http-foundation Version ^3.4.35 || ^4.4 || ^5.0
symfony/http-kernel Version ^3.4 || ^4.4 || ^5.0
willdurand/negotiation Version ^2.0.2 || ^3.1
The package elife/content-negotiator contains the following files
Loading the files please wait ....