sophokles / translation
Sophokles Translation
1.0.4
2021-07-30 10:17 UTC
Requires
- php: >=7.0, <7.9
README
Sophokles Translation Helper
Installation
- Include as composer dependency using
composer require sophokles/translation
- Run
composer install
to generate the vendor class autoloader - The classes from
Sophokles.tranlastion
can now be used in your composer project
Usage Examples
Small usage examples have been included in the examples/ folder. The examples are PHP scripts which shows how the translation classes work.
- Define the traget language
- Register the JSON-tranlationfile to the tranlation class
- Get the tranlations with the language class (lang)