PHPackages                             codecollab/i18n - 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. codecollab/i18n

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

codecollab/i18n
===============

Internationalization package of the CodeCollab project

1.0.1(9y ago)03092See the LICENSE filePHPPHP ^7

Since Dec 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/CodeCollab/I18n)[ Packagist](https://packagist.org/packages/codecollab/i18n)[ Docs](https://github.com/CodeCollab/I18n)[ RSS](/packages/codecollab-i18n/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (2)

I18n
====

[](#i18n)

Internationalization package of the CodeCollab project

[![Build Status](https://camo.githubusercontent.com/72370b0fc25349839d25c0230c22190b22f154a6b40a7eba8e4aeb562a6e4367/68747470733a2f2f7472617669732d63692e6f72672f436f6465436f6c6c61622f4931386e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/CodeCollab/I18n) [![MIT License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](mit) [![Latest Stable Version](https://camo.githubusercontent.com/faf97a8926e7f427d2fc88ef38799fb7918c66fde1386ea5a79a0034ea979525/68747470733a2f2f706f7365722e707567782e6f72672f636f6465636f6c6c61622f6931386e2f762f737461626c65)](https://packagist.org/packages/codecollab/i18n) [![Total Downloads](https://camo.githubusercontent.com/c5a2bbe5968c95cafe36c75cc525fecb6d669f307a0bb6ea5386837492c84921/68747470733a2f2f706f7365722e707567782e6f72672f636f6465636f6c6c61622f6931386e2f646f776e6c6f616473)](https://packagist.org/packages/codecollab/i18n) [![Latest Unstable Version](https://camo.githubusercontent.com/8751046a769cb03fafb41e4ebc5e0bd9533c12a576b2108121ff57b330ebe896/68747470733a2f2f706f7365722e707567782e6f72672f636f6465636f6c6c61622f6931386e2f762f756e737461626c65)](https://packagist.org/packages/codecollab/i18n)

Requirements
------------

[](#requirements)

PHP7+

Installation
------------

[](#installation)

Include the library in your project using composer:

```
{
    "require-dev": {
        "codecollab/i18n": "^1"
    }
}

```

Usage
-----

[](#usage)

This library uses simple php files containing an array of translations based on key/value pairs. The array should be named `$texts`.

The filename of the translations should be based on the language it targets, e.g. `en_US.php`. An simple example of translations in a file:

```
