PHPackages                             despark/laravel-db-i18n - 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. [Framework](/categories/framework)
4. /
5. despark/laravel-db-i18n

ActiveLibrary[Framework](/categories/framework)

despark/laravel-db-i18n
=======================

Database localization package for laravel framework

v2.0(7y ago)28771MITPHPPHP &gt;=7.0

Since Jul 12Pushed 7y ago3 watchersCompare

[ Source](https://github.com/despark/laravel-db-i18n)[ Packagist](https://packagist.org/packages/despark/laravel-db-i18n)[ RSS](/packages/despark-laravel-db-i18n/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (7)Versions (8)Used By (1)

[![](https://camo.githubusercontent.com/812ea17970564244d0aa2c600b85674e2f680bf9dafc2ad288c3680c620f6bf3/68747470733a2f2f6465737061726b2e636f6d2f7075626c69632f696d616765732f6465737061726b2d6c6f676f2e737667)](https://camo.githubusercontent.com/812ea17970564244d0aa2c600b85674e2f680bf9dafc2ad288c3680c620f6bf3/68747470733a2f2f6465737061726b2e636f6d2f7075626c69632f696d616765732f6465737061726b2d6c6f676f2e737667)

[![Latest Stable Version](https://camo.githubusercontent.com/53db793dad812a03eae5c21030e94e7f14a0df723ac593184a85ecdfade97533/68747470733a2f2f706f7365722e707567782e6f72672f6465737061726b2f6c61726176656c2d64622d6931386e2f762f737461626c652e737667)](https://packagist.org/packages/despark/laravel-db-i18n)

Despark's igniCMS DB Localization Module
========================================

[](#desparks-ignicms-db-localization-module)

About
-----

[](#about)

This package extends [despark/igni-core](https://github.com/despark/igni-core) by adding a fully functional DB Localization Module.

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

[](#installation)

Require using [Composer](https://getcomposer.org)

```
composer require despark/laravel-db-i18n
```

#### Note: [despark/igni-core](https://github.com/despark/igni-core) comes out of the box with this module.

[](#note-desparkigni-core-comes-out-of-the-box-with-this-module)

Example usage
-------------

[](#example-usage)

> config/ignicms.php

```
   ...
    'languages' => [
        // Add languages that you will use in your app.
        [
            'locale' => 'en',
            'name' => 'English',
        ],
        [
            'locale' => 'de',
            'name' => 'Deutsche',
        ],
        [
            'locale' => 'fr',
            'name' => 'Français',
        ],
    ],
   ...
```

> database/migrations/create\_articles\_table.php

```
 ...
  /**
   * Run the migrations.
   *
   * @return void
   */
  public function up()
  {
      Schema::create('articles', function (Blueprint $table) {
          $table->increments('id');
          $table->string('url');
          $table->timestamps();
      });
  }

  /**
   * Reverse the migrations.
   *
   * @return void
   */
  public function down()
  {
      Schema::dropIfExists('articles');
  }
 ...
```

> database/migrations/create\_articles\_i18n\_table.php

```
 ...
  /**
   * Run the migrations.
   *
   * @return void
   */
  public function up()
  {
      Schema::create('articles_i18n', function (Blueprint $table) {
          $table->increments('id');
          $table->unsignedInteger('parent_id');
          $table->string('locale');
          $table->string('title');
          $table->text('content')->nullable();
          $table->timestamps();

          $table->foreign('parent_id')
                 ->references('id')
                 ->on('articles')
                 ->onDelete('cascade')
                 ->onUpdate('cascade');
      });
  }

  /**
   * Reverse the migrations.
   *
   * @return void
   */
  public function down()
  {
      Schema::dropIfExists('articles_i18n');
  }
 ...
```

> App\\Models\\Article.php

```
 ...
  use Despark\Cms\Models\AdminModel;
  use Despark\LaravelDbLocalization\Contracts\Translatable;
  use Despark\LaravelDbLocalization\Traits\HasTranslation;

  class Article extends AdminModel implements Translatable
  {
      use HasTranslation;

      protected $table = 'articles';

      protected $translatable = [
          'title',
          'content',
      ];

      protected $fillable = [
          'title',
          'content',
          'url',
      ];

      protected $rules = [
          'title' => 'required',
          'content' => 'required',
          'url' => 'required',
      ];

      protected $identifier = 'articles';
   }
 ...
```

> App\\Http\\Controllers\\Admin\\ArticlesController.php

```
...
 use Despark\Cms\Http\Controllers\AdminController;

 class ArticlesController extends AdminController
 {
 }
...
```

> config\\entities\\articles.php

```
   return [
        'name' => 'Articles',
        'description' => 'Articles resource',
        'model' => App\Models\Article::class,
        'controller' => App\Http\Controllers\Admin\ArticlesController::class,
        'adminColumns' => [
            'title' => 'translation.title',
            'created at' => 'created_at',
        ],
        'actions' => ['edit', 'create', 'destroy'],
        'adminFormFields' => [
            'title' => [
                'type' => 'text',
                'label' => 'Title',
            ],
            'content' => [
                'type' => 'textarea',
                'label' => 'Content',
            ],
            'url' => [
                'type' => 'text',
                'label' => 'Url',
            ],
        ],
        'adminMenu' => [
            'articles' => [
                'name' => 'Articles',
                'iconClass' => 'fa-newspaper-o',
                'link' => 'articles.index',
            ],
        ],
    ];
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~112 days

Recently: every ~140 days

Total

6

Last Release

2668d ago

Major Versions

v1.4 → v2.02019-01-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd9812fc1e73e6abab81c545077695802ae2579f2320084a92074f1cf23d02c2?d=identicon)[lsimeonov](/maintainers/lsimeonov)

![](https://avatars.githubusercontent.com/u/6141561?v=4)[Despark Bulgaria EAD](/maintainers/despark)[@despark](https://github.com/despark)

---

Top Contributors

[![ageshev](https://avatars.githubusercontent.com/u/9364161?v=4)](https://github.com/ageshev "ageshev (10 commits)")

---

Tags

frameworklaravellocalizationdatabasedespark

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/despark-laravel-db-i18n/health.svg)

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

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel-lang/publisher

Localization publisher for your Laravel application

2167.7M24](/packages/laravel-lang-publisher)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)

PHPackages © 2026

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