PHPackages                             we-are-neopix/laravel-model-translation - 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. [Database &amp; ORM](/categories/database)
4. /
5. we-are-neopix/laravel-model-translation

ActiveLibrary[Database &amp; ORM](/categories/database)

we-are-neopix/laravel-model-translation
=======================================

This package is a driver based solution to translating Laravel models. It contains two drivers for storing translations in the database and in a JSON file, but also contains a plug-and-play system for its users to implement custom drivers for storing translations and use them with the package.

1.2.0(5y ago)404104MITPHPPHP ^7.4|^8.0CI failing

Since Mar 5Pushed 4y ago2 watchersCompare

[ Source](https://github.com/weareneopix/laravel-model-translation)[ Packagist](https://packagist.org/packages/we-are-neopix/laravel-model-translation)[ Docs](https://github.com/neopix/laravel-model-translation)[ RSS](/packages/we-are-neopix-laravel-model-translation/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (8)Used By (0)

A robust yet elegant system for translating Eloquent Models
===========================================================

[](#a-robust-yet-elegant-system-for-translating-eloquent-models)

[![Latest Stable Version](https://camo.githubusercontent.com/ad77d59d978aa0169abda80b2318fb3442361042ecb146574ef859dbcf661e9a/68747470733a2f2f706f7365722e707567782e6f72672f77652d6172652d6e656f7069782f6c61726176656c2d6d6f64656c2d7472616e736c6174696f6e2f762f737461626c65)](https://packagist.org/packages/we-are-neopix/laravel-model-translation)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/076b717ba310ec569df6f428daf71b02f9166927a9589ce506e11db13b49f467/68747470733a2f2f7472617669732d63692e6f72672f77656172656e656f7069782f6c61726176656c2d6d6f64656c2d7472616e736c6174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/weareneopix/laravel-model-translation)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/25d1fb3b14cb40d8cb567cb5527902058b22ededb4d93b5805cb3190101b70d2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f77656172656e656f7069782f6c61726176656c2d6d6f64656c2d7472616e736c6174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/weareneopix/laravel-model-translation/?branch=master)

For Laravel 7 and 8 use version ~1.2
------------------------------------

[](#for-laravel-7-and-8-use-version-12)

This package is meant to simplify the process of making Eloquent models translatable. It's aim is to deviate as little as possible from Laravel's Eloquent API but still provide a satisfiable level of flexibility. This is achieved by utilizing a driver-based approach to storing translations and a trait which allows Model instances to seamlessly interact with the translation storage.

After setting the package up, all that takes to use your models with translations is this:

```
$post = BlogPost::find(1); // An instance of the BlogPost model

App::setLocale('sr');
$post->title = 'Naslov na srpskom';
$post->save();

$post->setLanguage('en');
$post->title = 'Title in English';
$post->save();

$post->title; // Returns 'Title in English';
$post->setLanguage('sr')->title; // Returns 'Naslov na srpskom'
```

Since this is a driver-based solution, you have the full power to implement the architecture for persistently storing translations yourself. Of course, the package comes with two drivers out of the box, JSON and MySQL, but you are free to implement your own drivers and rely on whatever architecture you prefer.

For a more detailed explanation on how the package works and how to use it, please visit our [wiki pages](https://github.com/misa-neopix/laravel-model-translation/wiki).

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 93.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~131 days

Recently: every ~196 days

Total

7

Last Release

1840d ago

PHP version history (3 changes)1.0.0PHP ^7.2

1.1.2PHP ~7.2

1.2.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/974318caa41a1a1d8d66bf3390439baaa7a4fcd42d94a75043bc3fb52c9c6f6e?d=identicon)[misa-neopix](/maintainers/misa-neopix)

---

Top Contributors

[![misa-neopix](https://avatars.githubusercontent.com/u/42573490?v=4)](https://github.com/misa-neopix "misa-neopix (27 commits)")[![nguyentranchung](https://avatars.githubusercontent.com/u/9611224?v=4)](https://github.com/nguyentranchung "nguyentranchung (1 commits)")[![ovillafuerte94](https://avatars.githubusercontent.com/u/15527080?v=4)](https://github.com/ovillafuerte94 "ovillafuerte94 (1 commits)")

---

Tags

laraveli18ntranslationeloquentmultilingualmulti-languageneopixlaravel-model-translation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/we-are-neopix-laravel-model-translation/health.svg)

```
[![Health](https://phpackages.com/badges/we-are-neopix-laravel-model-translation/health.svg)](https://phpackages.com/packages/we-are-neopix-laravel-model-translation)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[richan-fongdasen/laravel-i18n

Simple route and eloquent localization / translation in Laravel

1296.6k](/packages/richan-fongdasen-laravel-i18n)[moharrum/laravel-adminer

Adminer database management tool for your Laravel application.

451.0k](/packages/moharrum-laravel-adminer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
