vakata / intl
Translator class using MessageFormatter
Installs: 3 735
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.0.0
Requires (Dev)
- clean/phpdoc-md: dev-master
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: 4.*
README
A simple key-value storage class. used for configurations and extended in vakata/session.
Install
Via Composer
$ composer require vakata/intl
Usage
$intl = new \vakata\intl\Intl('de_DE'); $intl->fromFile('de_DE.json'); $intl->get('The date is {:date, date, medium}', [ 'date' => time() ]);
Read more in the API docs
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email github@vakata.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.