Download the PHP package syonix/http-header-accept-language without Composer
On this page you can find all versions of the php package syonix/http-header-accept-language. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download syonix/http-header-accept-language
More information about syonix/http-header-accept-language
Files in syonix/http-header-accept-language
Download syonix/http-header-accept-language
More information about syonix/http-header-accept-language
Files in syonix/http-header-accept-language
Vendor syonix
Package http-header-accept-language
Short Description A parser for the Accept-Language HTTP header following RFC 2616
License MIT
Package http-header-accept-language
Short Description A parser for the Accept-Language HTTP header following RFC 2616
License MIT
Please rate this library. Is it a good library?
Informations about the package http-header-accept-language
Accept-Language HTTP Header Parser
A parser for the Accept-Language HTTP header following RFC 2616
Usage
Notes
AcceptLanguage::match()
throws a RuntimeException, if none of the accepted languages matches and*
is not in theAccept-Languages
string.- If
*
is accepted and none of the other accepted languages match, the passed$default
parameter is passed - If
$default
is omitted, the first element of the$locale
array is returned. - Both
parse
andmatch
are case insensitive. parse
always returns the case of the input stringmatch
always returns the case of the provided locale array.- As per the RFC, the quality value defaults to
q=1
.
All versions of http-header-accept-language with dependencies
PHP Build Version
Package Version
No informations.
The package syonix/http-header-accept-language contains the following files
Loading the files please wait ....