Download the PHP package germania-kg/language-negotiation without Composer
On this page you can find all versions of the php package germania-kg/language-negotiation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download germania-kg/language-negotiation
More information about germania-kg/language-negotiation
Files in germania-kg/language-negotiation
Download germania-kg/language-negotiation
More information about germania-kg/language-negotiation
Files in germania-kg/language-negotiation
Vendor germania-kg
Package language-negotiation
Short Description Middleware to store negotiated client language in a Request attribute.
License MIT
Package language-negotiation
Short Description Middleware to store negotiated client language in a Request attribute.
License MIT
Please rate this library. Is it a good library?
Informations about the package language-negotiation
Germania KG · Language Negotiation
This middleware stores the result of Will Durand's language Negotiation language in a Request attribute X-language-negotiated
.
Works with both PSR-15 SinglePass and traditional Slim-like DoublePass approach.
Usage
Setup
Configuration using constructor :
Configuration using methods API:
Usage in Controller
Slim-like example:
Development
Unit tests
Either copy phpunit.xml.dist
to phpunit.xml
and adapt to your needs, or leave as is. Run PhpUnit test or composer scripts like this:
All versions of language-negotiation with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
psr/log Version ^1.0
psr/http-message Version ^1.0
willdurand/negotiation Version ^2.3|^3.0
psr/http-server-middleware Version ^1.0
psr/log Version ^1.0
psr/http-message Version ^1.0
willdurand/negotiation Version ^2.3|^3.0
psr/http-server-middleware Version ^1.0
The package germania-kg/language-negotiation contains the following files
Loading the files please wait ....