PHPackages                             shaunthegeek/laravel-lang-db - 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. shaunthegeek/laravel-lang-db

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

shaunthegeek/laravel-lang-db
============================

Manage Laravel translations in the database and export them to JSON files.

v1.0.0(3mo ago)012MITPHP

Since Jan 30Pushed 3mo agoCompare

[ Source](https://github.com/shaunthegeek/laravel-lang-db)[ Packagist](https://packagist.org/packages/shaunthegeek/laravel-lang-db)[ RSS](/packages/shaunthegeek-laravel-lang-db/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Lang DB
===============

[](#laravel-lang-db)

Manage Laravel translations in the database and export them to JSON files.

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

[](#installation)

```
composer require shaunthegeek/laravel-lang-db
```

Usage
-----

[](#usage)

1. Run migrations to create the table:

```
php artisan vendor:publish --tag=laravel-lang-db-migrations
php artisan migrate
```

2. Import translations from `/lang` directory to database:

```
php artisan lang:import
```

This will read all `.json` files in `/lang` and populate the database. By default, it skips existing keys. Use `--force` to update existing records:

```
php artisan lang:import --force
```

3. Add translations to the `languages` table, either by directly operating the database or via the admin interface (e.g., FilamentPHP).

localekeyvalueenmessages.welcomeWelcomezh\_CNmessages.welcome欢迎4. Export translations to `/lang` directory:

```
php artisan lang:export
```

This will create/update:

- `/lang/en.json`
- `/lang/zh_CN.json`

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance81

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

103d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89ddc639897087464ea88b1e5481834d86fe581c94a2333cfe2778a4e93b65bd?d=identicon)[sinkcup](/maintainers/sinkcup)

---

Top Contributors

[![shaunthegeek](https://avatars.githubusercontent.com/u/4971414?v=4)](https://github.com/shaunthegeek "shaunthegeek (5 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/shaunthegeek-laravel-lang-db/health.svg)

```
[![Health](https://phpackages.com/badges/shaunthegeek-laravel-lang-db/health.svg)](https://phpackages.com/packages/shaunthegeek-laravel-lang-db)
```

###  Alternatives

[mcamara/laravel-localization

Easy localization for Laravel

3.5k9.1M112](/packages/mcamara-laravel-localization)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.3k](/packages/typicms-base)[vemcogroup/laravel-translation

Translation package for Laravel to scan for localisations and up/download to poeditor

135304.0k2](/packages/vemcogroup-laravel-translation)

PHPackages © 2026

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