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

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

tleckie/translate
=================

Fast, powerful, scalable and customizable php translator library

1.0.0(5y ago)1387MITPHPPHP ^8

Since May 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/teodoroleckie/translate)[ Packagist](https://packagist.org/packages/tleckie/translate)[ Docs](https://github.com/teodoroleckie/translate)[ RSS](/packages/tleckie-translate/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

### Fast, powerful, scalable and customizable php translator library

[](#fast-powerful-scalable-and-customizable-php-translator-library)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5f750a98e83174671a7e55e9063c970500583cd7694a9a4d97dbde5a7918b91e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656f646f726f6c65636b69652f7472616e736c6174652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/teodoroleckie/translate/?branch=main)[![Build Status](https://camo.githubusercontent.com/01a13c978e4cdfc7b0fa93ac80b09d2f1ae97b37ad39498a437f45d2c2dd3d1b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656f646f726f6c65636b69652f7472616e736c6174652f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/teodoroleckie/translate/build-status/main)[![Code Intelligence Status](https://camo.githubusercontent.com/4bd77285ed2d75540792c7a3b09ff8fb477669274826bf40854369a37cbd922a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656f646f726f6c65636b69652f7472616e736c6174652f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d61696e)](https://scrutinizer-ci.com/code-intelligence)[![Total Downloads](https://camo.githubusercontent.com/057acd9eecde72f365721ac86f47ee5579e0426390adf8ab64f268614cd4fd03/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746c65636b69652f7472616e736c6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tleckie/translate)

You can install the package via composer:

```
composer require tleckie/translate
```

### Usage

[](#usage)

Create an instance of the Translator class to which you will assign a loader. The loader must have the directory in which the translation files are stored, it must also indicate the extension of the translation files.

```
