PHPackages                             aozisik/translatable - 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. aozisik/translatable

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

aozisik/translatable
====================

Translatable is a package that helps you have translatable fields on models. These fields will store your translations in JSON format and will be automatically fetched to your current app locale when you try to reach them. You can also get a specific language of your choice by using certain methods. Please refer to the Github page for further details.

029PHP

Since Mar 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/aozisik/Translatable)[ Packagist](https://packagist.org/packages/aozisik/translatable)[ RSS](/packages/aozisik-translatable/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

\#Laravel Translatable# [![Build Status](https://camo.githubusercontent.com/04fe3351793f77d09a73813b58e10a88861616daa6e83c65758fe9f5a9ea9d00/68747470733a2f2f7472617669732d63692e6f72672f616f7a6973696b2f5472616e736c617461626c652e737667)](https://travis-ci.org/aozisik/Translatable)[![Latest Unstable Version](https://camo.githubusercontent.com/1ab297ff53c1bc9d1db6c154d25099c42b1c7878373a16e6da29f1c4dee6e7d5/68747470733a2f2f706f7365722e707567782e6f72672f616f7a6973696b2f7472616e736c617461626c652f762f756e737461626c652e737667)](https://packagist.org/packages/aozisik/translatable)[![License](https://camo.githubusercontent.com/b562ae82fdb3e911aa0f5b257ff8a5f9838ccf5d5fc55e9f13489acfd88ed775/68747470733a2f2f706f7365722e707567782e6f72672f616f7a6973696b2f7472616e736c617461626c652f6c6963656e73652e737667)](https://packagist.org/packages/aozisik/translatable)

This package is designed to work with Laravel 4 and Eloquent ORM.

It requires no additional migrations, no changes to your current data models or no significant code revisions. The implementation is very simple and straight forward.

I devised this package as a simple means to enable fields on Eloquent models to be translatable. You just add the TranslatableTrait and you're set.

Go to your composer.json and add the following line

```
	"aozisik/translatable": "dev-master"

```

An exemplary implementation:

```
