PHPackages                             goszowski/laravel-db-trans - 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. goszowski/laravel-db-trans

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

goszowski/laravel-db-trans
==========================

1.0.1(9y ago)015MITHTMLPHP &gt;=5.6.0

Since Apr 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/goszowski/laravel-db-trans)[ Packagist](https://packagist.org/packages/goszowski/laravel-db-trans)[ RSS](/packages/goszowski-laravel-db-trans/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (3)Used By (0)

[![Total Downloads](https://camo.githubusercontent.com/460fdc87ef8b17a560abcb2f697210929753e241412490df5537bd978112e6c4/68747470733a2f2f706f7365722e707567782e6f72672f676f737a6f77736b692f6c61726176656c2d64622d7472616e732f642f746f74616c2e737667)](https://packagist.org/packages/goszowski/laravel-db-trans)[![Latest Stable Version](https://camo.githubusercontent.com/26c922e1d8a2ebc38647c51c8875fae85c04c289faa8c4e25041632315a6bf5c/68747470733a2f2f706f7365722e707567782e6f72672f676f737a6f77736b692f6c61726176656c2d64622d7472616e732f762f737461626c652e737667)](https://packagist.org/packages/goszowski/laravel-db-trans)[![Latest Unstable Version](https://camo.githubusercontent.com/53de34c5a138ed1e93b4d8e927bda19f417f597124f7ad3b62021f53bc751a0e/68747470733a2f2f706f7365722e707567782e6f72672f676f737a6f77736b692f6c61726176656c2d64622d7472616e732f762f756e737461626c652e737667)](https://packagist.org/packages/goszowski/laravel-db-trans)[![License](https://camo.githubusercontent.com/337120a15a237a0ddb4e384045056bce596806bf8dc439a02ab5a5ec2fc160c2/68747470733a2f2f706f7365722e707567782e6f72672f676f737a6f77736b692f6c61726176656c2d64622d7472616e732f6c6963656e73652e737667)](https://packagist.org/packages/goszowski/laravel-db-trans)

LaravelDbTrans
--------------

[](#laraveldbtrans)

LaravelDbTrans is a package for automatic creating and edition translates in database.

##### Template:

[](#template)

```
{{ __('Some words') }}
```

##### or using prefix:

[](#or-using-prefix)

```
{{ __('myprefix.Some words') }}
```

##### In both cases, records will be created in the database, and returned to the tempate only "Some words"

[](#in-both-cases-records-will-be-created-in-the-database-and-returned-to-the-tempate-only-some-words)

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

[](#installation)

1. Require this package in your composer.json and run composer update :

    ```
     "goszowski/laravel-db-trans": "1.*"

    ```
2. After composer update, add service providers to the `config/app.php`

    ```
    Goszowski\LaravelDbTrans\LaravelDbTransServiceProvider::class,

    ```
3. Run

    ```
    php artisan vendor:publish

    ```
4. Migrate

    ```
    php artisan migrate

    ```

Configuration
-------------

[](#configuration)

Visit url `/laravel-db-trans` in your app. Here will be all translations that will be created.

If You want to protect this url or change name, You must disable option `use_package_routes` in `config/laraveldbtrans.php`

After this, You must create routes for you app by this template:

```
Route::group(['prefix'=>'laravel-db-trans', 'as'=>'laravel-db-trans.'], function(){
  Route::get('/', ['as'=>'index', 'uses'=>'\Goszowski\LaravelDbTrans\LaravelDbTransController@index']);
  Route::get('/{key}', ['as'=>'edit', 'uses'=>'\Goszowski\LaravelDbTrans\LaravelDbTransController@edit']);
  Route::patch('/{key}', ['as'=>'update', 'uses'=>'\Goszowski\LaravelDbTrans\LaravelDbTransController@update']);
  Route::delete('/{key}', ['as'=>'destroy', 'uses'=>'\Goszowski\LaravelDbTrans\LaravelDbTransController@destroy']);
});
```

Also, You can customize blade templates in `views/vendor/laravel-db-trans`

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

3369d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10208931?v=4)[Jarosław Goszowski](/maintainers/goszowski)[@goszowski](https://github.com/goszowski)

---

Top Contributors

[![goszowski](https://avatars.githubusercontent.com/u/10208931?v=4)](https://github.com/goszowski "goszowski (8 commits)")

### Embed Badge

![Health badge](/badges/goszowski-laravel-db-trans/health.svg)

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.1M11.2k](/packages/illuminate-database)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[lemaur/eloquent-publishing

207.8k1](/packages/lemaur-eloquent-publishing)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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