dmx / laravel-intl
A lightweight and easy to use internationalization library to enhance your Laravel application.
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.1.4
2020-04-07 06:39 UTC
Requires
- php: ^7.2.0
- ext-intl: *
- illuminate/contracts: ^5.6.0|^6.0.0
- illuminate/http: ^5.6.0|^6.0.0
- illuminate/support: ^5.6.0|^6.0.0
Requires (Dev)
- ext-mbstring: *
- friendsofphp/php-cs-fixer: ^2.15
- mockery/mockery: ^1.2
- phpunit/phpunit: ^8.3
README
A lightweight and easy to use internationalization library to enhance your Laravel application.
Installation
Use composer to install and use this package in your project.
Install them with
composer require "dmx/laravel-intl"
and you are ready to go!
Usage
You can use the the provided classes directly for your own purpose.
Locale
$myLocale = new DMX\Application\Intl\Locale('en', 'GB', 'utf8'); echo $myLocale->toISO15897String(); echo $myLocale->toIETFLanguageTag();
This will generate the following output:
en_GB.utf8
en-GB
Development - Getting Started
See the CONTRIBUTING file.
Changelog
See the CHANGELOG file.
License
See the LICENSE file.