Download the PHP package yiisoft/translator-formatter-simple without Composer
On this page you can find all versions of the php package yiisoft/translator-formatter-simple. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yiisoft/translator-formatter-simple
More information about yiisoft/translator-formatter-simple
Files in yiisoft/translator-formatter-simple
Package translator-formatter-simple
Short Description Yii Translator Simple Message Formatter
License BSD-3-Clause
Homepage https://www.yiiframework.com/
Informations about the package translator-formatter-simple
This package is deprecated and is now part of yiisoft/translator.
❌
Yii Translator Simple Message Formatter
This package allow to format messages in simple mode. When translating a message, you can embed some placeholders and have them replaced by dynamic parameter values.
Requirements
- PHP 7.4 or higher.
Installation
The package could be installed with composer:
Configuration
In case you use yiisoft/config
, you will get configuration automatically. If not, the following DI container configuration is necessary:
General usage
Example of usage with yiisoft/translator
Example of usage without yiisoft/translator
package
Testing
Unit testing
The package is tested with PHPUnit. To run tests:
Mutation testing
The package tests are checked with Infection mutation framework with Infection Static Analysis Plugin. To run it:
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
License
The Yii Translator Simple Message Formatter is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Software.