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

v4.0.0(3mo ago)120.9k↓39.1%6[1 PRs](https://github.com/novius/laravel-translation-loader/pulls)1MITPHPPHP ^8.2CI failing

Since Jan 7Pushed 3mo 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 1mo ago

READMEChangelog (10)Dependencies (6)Versions (19)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)

- Translations 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;= 9.0

> **NOTE**: These instructions are for Laravel &gt;= 9.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

56

—

FairBetter than 98% of packages

Maintenance82

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 71.7% 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 ~149 days

Recently: every ~208 days

Total

16

Last Release

90d ago

Major Versions

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

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

3.3.0 → v4.0.02026-02-18

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 (33 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

8362.9M51](/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.

6230.1k3](/packages/tomatophp-filament-translations)[codezero/laravel-unique-translation

Check if a translated value in a JSON column is unique in the database.

186965.1k7](/packages/codezero-laravel-unique-translation)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)

PHPackages © 2026

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