Download the PHP package elcheco/translator without Composer
On this page you can find all versions of the php package elcheco/translator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download elcheco/translator
More information about elcheco/translator
Files in elcheco/translator
Download elcheco/translator
More information about elcheco/translator
Files in elcheco/translator
Vendor elcheco
Package translator
Short Description Translation system using neon files, supports plurals and string replacements, fallback language. Extension to Nette Framework ^3.0
License BSD-3-Clause
Package translator
Short Description Translation system using neon files, supports plurals and string replacements, fallback language. Extension to Nette Framework ^3.0
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package translator
Translator
Lightweight and powerful translation system for PHP 8.0+, build as component not only for Nette framework
Note: Inspired by rostenkowski/translate, but I needed support for Nette Framework ^3.2|^4.0 and fallback translation possibility. I also refactored a bit the plurals to be naturally understandable.
Install
Translations
Translations are stored in *.neon files in this format:
Usage with Nette Framework
Put your translations to %appDir%/translations
directory as cs_CZ.neon
etc.
Usage with plain PHP
Requirements
- PHP 8.0+
- nette/di
- nette/neon
- nette/safe-stream
- nette/utils
- nette/tester
All versions of translator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-intl Version *
ext-tokenizer Version *
nette/di Version ^3.1
nette/neon Version ^3.0
nette/safe-stream Version ^2.4|^3.0
nette/utils Version ^3.0|^4.0
psr/log Version ^1.0
ext-intl Version *
ext-tokenizer Version *
nette/di Version ^3.1
nette/neon Version ^3.0
nette/safe-stream Version ^2.4|^3.0
nette/utils Version ^3.0|^4.0
psr/log Version ^1.0
The package elcheco/translator contains the following files
Loading the files please wait ....