PHPackages                             novius/laravel-translation-loader - 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. novius/laravel-translation-loader

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

novius/laravel-translation-loader
=================================

Store your language lines in the database, yaml or other sources

5.0.0(1mo ago)122.3k↓61.2%6[1 PRs](https://github.com/novius/laravel-translation-loader/pulls)1MITPHPPHP ^8.2CI passing

Since Jan 7Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/novius/laravel-translation-loader)[ Packagist](https://packagist.org/packages/novius/laravel-translation-loader)[ RSS](/packages/novius-laravel-translation-loader/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (10)Dependencies (14)Versions (21)Used By (1)

Laravel Translation Loader
==========================

[](#laravel-translation-loader)

[![Novius CI](https://github.com/novius/laravel-translation-loader/actions/workflows/master.yml/badge.svg?branch=master)](https://github.com/novius/laravel-translation-loader/actions/workflows/master.yml)[![Packagist Release](https://camo.githubusercontent.com/8dfdfd77520790889799fae45c763c384984a3f9b621b93aff00dc709f9958ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f766975732f6c61726176656c2d7472616e736c6174696f6e2d6c6f616465722e7376673f6d61784167653d31383030267374796c653d666c61742d737175617265)](https://packagist.org/packages/novius/laravel-translation-loader)[![Licence](https://camo.githubusercontent.com/ce679ac6ed2ab8256af16b8adf0121ba87b5aa350d413c4b2c0d34fd463df9d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6f766975732f6c61726176656c2d7472616e736c6174696f6e2d6c6f616465722e7376673f6d61784167653d31383030267374796c653d666c61742d737175617265)](https://github.com/novius/laravel-translation-loader#licence)

This package is an adaptation of [spatie/laravel-translation-loader](https://github.com/spatie/laravel-translation-loader)

> **WARNING**: this package is currently in development.

Features added
--------------

[](#features-added)

- Translation's namespace compatibility ;
- Console commands to synchronize translations from files to DB;
- Manage differences between file translations and DB translations;
- Detect orphan translations (translations in DB but no longer in files);
- Identify "dirty" locales (DB translation different from file translation);
- Actions to sync specific translations (File to DB or DB to file);

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

[](#requirements)

- PHP &gt;= 8.2
- Laravel Framework &gt;= 10.0

> **NOTE**: These instructions are for Laravel &gt;= 10.0. If you are using prior version, please see the [previous version's docs](https://github.com/novius/laravel-translation-loader/tree/2.x).

Installation
------------

[](#installation)

```
composer require novius/laravel-translation-loader:dev-master
```

In `config/app.php` (Laravel) you should replace Laravel's translation service provider

```
Illuminate\Translation\TranslationServiceProvider::class,
```

by the one included in this package:

```
Novius\TranslationLoader\TranslationServiceProvider::class,
```

Run migrations:

```
php artisan migrate
```

Publish languages' files:

```
php artisan vendor:publish --provider="Novius\TranslationLoader\TranslationServiceProvider" --tag="lang"
```

Optionally, you could publish the config file using this command.

```
php artisan vendor:publish --provider="Novius\TranslationLoader\TranslationServiceProvider" --tag="config"
```

Commands
--------

[](#commands)

```
# Synchronise translations from files to DB
php artisan translations:sync

# Synchronise and delete translations from DB that are not in files anymore
php artisan translations:sync --clean

# Clear DB translations + re-import them
php artisan translations:reset
```

Lint
----

[](#lint)

Run php-cs with:

```
composer run-script lint
```

Contributing
------------

[](#contributing)

Contributions are welcome! Leave an issue on Github, or create a Pull Request.

Licence
-------

[](#licence)

This package is under MIT Licence.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 74% 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 ~136 days

Recently: every ~107 days

Total

18

Last Release

55d ago

Major Versions

1.x-dev → v2.0.02020-10-12

2.x-dev → v3.0.02022-04-15

3.x-dev → v4.0.02026-02-18

v4.1.0 → 5.0.02026-05-11

PHP version history (5 changes)v1.0.0PHP ^7.2

v2.0.0PHP ^7.3

v2.1.0PHP ^8.0

v3.0.0PHP ^8.1

v4.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/341860?v=4)[Novius](/maintainers/novius)[@novius](https://github.com/novius)

---

Top Contributors

[![felixgilles](https://avatars.githubusercontent.com/u/900854?v=4)](https://github.com/felixgilles "felixgilles (37 commits)")[![tony-novius](https://avatars.githubusercontent.com/u/243603340?v=4)](https://github.com/tony-novius "tony-novius (9 commits)")[![Ange7](https://avatars.githubusercontent.com/u/4114703?v=4)](https://github.com/Ange7 "Ange7 (2 commits)")[![alva-v](https://avatars.githubusercontent.com/u/86183890?v=4)](https://github.com/alva-v "alva-v (1 commits)")[![Findhel](https://avatars.githubusercontent.com/u/9133325?v=4)](https://github.com/Findhel "Findhel (1 commits)")

---

Tags

i18nlanguagelaraveltranslationlaravellanguagetranslatedatabasei8ndblaravel-translation-loader

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/novius-laravel-translation-loader/health.svg)

```
[![Health](https://phpackages.com/badges/novius-laravel-translation-loader/health.svg)](https://phpackages.com/packages/novius-laravel-translation-loader)
```

###  Alternatives

[spatie/laravel-translation-loader

Store your language lines in the database, yaml or other sources

8453.2M69](/packages/spatie-laravel-translation-loader)[tomatophp/filament-translations

Manage your translation with DB and cache, you can scan your languages tags like trans(), \_\_(), and get the string inside and translate them use UI.

6335.5k3](/packages/tomatophp-filament-translations)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11223.5M33](/packages/anourvalar-eloquent-serialize)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

111.6k](/packages/ramadan-easy-model)

PHPackages © 2026

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