dmx/laravel-intl

A lightweight and easy to use internationalization library to enhance your Laravel application.

1.1.2 2019-05-28 11:19 UTC

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.