PHPackages                             mvaliolahi/translator - 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. mvaliolahi/translator

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

mvaliolahi/translator
=====================

Another library to achieve translation in your beautiful application!

114[2 issues](https://github.com/mvaliolahi/translator/issues)PHP

Since Nov 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mvaliolahi/translator)[ Packagist](https://packagist.org/packages/mvaliolahi/translator)[ RSS](/packages/mvaliolahi-translator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Translator
----------

[](#translator)

Translate messages for any project.

#### Install

[](#install)

```
`composer require mvaliolahi/translator`

```

##### Usage

[](#usage)

Make a directory as resources path, inside the ResourcePath directory make several directory for different languages.

###### example:

[](#example)

1. `Resources/lang/en` .
2. Inside `en` make a message.php file.
3. The message.php is like below code:

    ```
