PHPackages                             delfimov/translate - 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. delfimov/translate

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

delfimov/translate
==================

Easy to use i18n translation PHP class for multi-language websites

v2.6.0(7y ago)1780.5k↑450%3[1 PRs](https://github.com/delfimov/Translate/pulls)MITPHPPHP &gt;=5.6.0CI failing

Since Jun 8Pushed 3y ago3 watchersCompare

[ Source](https://github.com/delfimov/Translate)[ Packagist](https://packagist.org/packages/delfimov/translate)[ Docs](https://github.com/delfimov/Translate/)[ RSS](/packages/delfimov-translate/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (6)Versions (12)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/02bc1f88c34d126c93c1cc9e3eaf04c3aa56750e41321d58b6b20b149203870c/68747470733a2f2f706f7365722e707567782e6f72672f64656c66696d6f762f7472616e736c6174652f762f737461626c65)](https://packagist.org/packages/delfimov/translate)[![Build Status](https://camo.githubusercontent.com/5d633922a64bafd1e27eb38ea8353c3291e69c93c4ac2659e16f577e9bb6f748/68747470733a2f2f7472617669732d63692e6f72672f64656c66696d6f762f5472616e736c6174652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/delfimov/Translate)[![StyleCI](https://camo.githubusercontent.com/b147060ad469cfb3141cfb0515ac338014a5d9d63330b72b991f1003cb20924b/68747470733a2f2f7374796c6563692e696f2f7265706f732f333332353233392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/3325239)[![SensioLabsInsight](https://camo.githubusercontent.com/9311d74768346e4901df83d6ba240692fc15a62fb699c94741ba8a2f34492973/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32366237636663652d333633362d343338352d626532392d3534663531623664666534322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/26b7cfce-3636-4385-be29-54f51b6dfe42)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/delfimov/GDImage/blob/master/LICENSE)

Translate
=========

[](#translate)

Easy to use i18n translation PHP class for multi-language websites with language auto detection and plurals.

PSR-6 translation containers. PSR-3 logger.

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

[](#requirements)

- [PHP &gt;= 5.6](http://www.php.net/)

How to install
--------------

[](#how-to-install)

Add this line to your composer.json file:

```
"delfimov/translate": "~2.0"
```

or

```
composer require delfimov/translate
```

Alternatively, copy the contents of the Translate folder into one of your project's directories and `require 'src/Translate.php';`, `require 'src/Loader/LoaderInterface.php';`, `require 'src/Loader/PhpFilesLoader.php';`If you don't speak git or just want a tarball, click the 'zip' button at the top of the page in GitHub.

A Simple Example
----------------

[](#a-simple-example)

See [`example`](example) directory for sources.

`example\example.php`

```
