Download the PHP package razonyang/yii-translator-middleware without Composer
On this page you can find all versions of the php package razonyang/yii-translator-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download razonyang/yii-translator-middleware
More information about razonyang/yii-translator-middleware
Files in razonyang/yii-translator-middleware
Download razonyang/yii-translator-middleware
More information about razonyang/yii-translator-middleware
Files in razonyang/yii-translator-middleware
Vendor razonyang
Package yii-translator-middleware
Short Description Yii translator middleware
License BSD-3-Clause
Package yii-translator-middleware
Short Description Yii translator middleware
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package yii-translator-middleware
Yii Translator HTTP Middleware
A HTTP middleware for Yii Translator.
How it works?
- The
TranslatorMiddleware
parse the locale from incoming request and store the translator instance into request. - The subsequent middlewares and handlers can retrieves the translator instance by
TranslatorMiddleware::getTranslator
orTranslatorMiddleware::getTranslatorByAttributes
static methods.
Installation
The package could be installed with composer:
Configurations
Locale Parsers
CompositeParser
: parse locale from multiple parsers, returns immediately if success.HeaderParser
: parse locale from theAccept-Language
header.QueryParamsParser
: parse locale from the specified query parameter, default tolang
.
All versions of yii-translator-middleware with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
yiisoft/translator Version ^1.0
yiisoft/mutex Version ^1.1
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
yiisoft/translator Version ^1.0
yiisoft/mutex Version ^1.1
The package razonyang/yii-translator-middleware contains the following files
Loading the files please wait ....