Skip to content
A lightweight and easy to use internationalization library to enhance your Laravel application
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src
tests/Unit
.editorconfig
.gitattributes
.gitignore
.php_cs
CHANGELOG.md
CONTRIBUTING.md
LICENSE.md
README.md
composer.json
package.json
phpunit.xml

README.md

Laravel Internationalization

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.

You can’t perform that action at this time.