PHPackages                             fdevs/locale - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. fdevs/locale

ActiveLibrary[Localization &amp; i18n](/categories/localization)

fdevs/locale
============

library for working with different languages

3.0.0(10y ago)040713MITPHPPHP ~5.5|~7.0

Since Feb 3Pushed 9y ago3 watchersCompare

[ Source](https://github.com/4devs/locale)[ Packagist](https://packagist.org/packages/fdevs/locale)[ Docs](https://github.com/4devs/Locale)[ RSS](/packages/fdevs-locale/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (12)Used By (3)

Locale Library
==============

[](#locale-library)

[![Build Status](https://camo.githubusercontent.com/3d4a85c98b8b3fe7c9a08e806d15c0dec085c2da20dada4f5a78842f85a19b55/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f34646576732f6c6f63616c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/4devs/locale)

[![SensioLabsInsight](https://camo.githubusercontent.com/5e6e88834b5bfd7c6d3753e5b18fab7c891764a058bae615a0ff44b46fa13e42/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f37643661313234342d656232392d346438612d383831392d6666623763386437316634612f6d696e692e706e67)](https://insight.sensiolabs.com/projects/7d6a1244-eb29-4d8a-8819-ffb7c8d71f4a)

Documentation
-------------

[](#documentation)

Installation and usage
----------------------

[](#installation-and-usage)

Installation and usage is a quick:

1. Download Locale using composer
2. Use the library
3. Customize Data Provider

You can "[fdevs/locale-bridge](https://packagist.org/packages/fdevs/locale-bridge)" for use with other libraries/components

### Step 1: Download Locale library using composer

[](#step-1-download-locale-library-using-composer)

Download the bundle by running the command:

```
$ php composer.phar require fdevs/locale
```

Composer will install the bundle to your project's `vendor/fdevs` directory.

### Step 2: Use the library

[](#step-2-use-the-library)

\####Basic setup:

```
