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

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

sandj/laravel-translation-loader
================================

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

v3.2.2(1y ago)02.8k↓50%MITPHPPHP ^8.0

Since Jan 7Pushed 1y agoCompare

[ Source](https://github.com/smeeckaert/laravel-translation-loader)[ Packagist](https://packagist.org/packages/sandj/laravel-translation-loader)[ RSS](/packages/sandj-laravel-translation-loader/feed)WikiDiscussions master Synced 1mo ago

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

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

[](#laravel-translation-loader)

[![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 synchronise translations from files to DB;

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

[](#requirements)

- PHP &gt;= 8.1
- 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,
```

You must publish and run the migrations to create the `language_lines` table:

```
php artisan vendor:publish --provider="Novius\TranslationLoader\TranslationServiceProvider" --tag="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

# 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

37

—

LowBetter than 83% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~196 days

Recently: every ~212 days

Total

10

Last Release

554d ago

Major Versions

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

v2.1.0 → v3.0.02022-04-15

v2.1.1 → 3.x-dev2024-11-04

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

v2.0.0PHP ^7.3

v2.1.0PHP ^8.0

v3.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e31b65428ad9226e9f729a75cdedbd7b07ad19465d08b2c7172c93df773fdb2?d=identicon)[smeeckaert](/maintainers/smeeckaert)

---

Top Contributors

[![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 (1 commits)")

---

Tags

laravellanguagetranslatedatabasei8ndblaravel-translation-loader

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/sandj-laravel-translation-loader/health.svg)](https://phpackages.com/packages/sandj-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)[arcanedev/laravel-settings

This package allows you to persists configs/settings for Laravel projects.

74131.4k6](/packages/arcanedev-laravel-settings)[webparking/laravel-db-rebuild

A laravel package that allows for quick database rebuilds with presets.

448.8k](/packages/webparking-laravel-db-rebuild)

PHPackages © 2026

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