dmx/laravel-intl

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

1.1.4 2020-04-07 06:39 UTC

This package is auto-updated.

Last update: 2024-04-07 16:24:34 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.