PHPackages                             kikwik/db-trans-bundle - 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. kikwik/db-trans-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

kikwik/db-trans-bundle
======================

Database translation loader with on-page translations edit for symfony 5

v1.0.7(2y ago)040MITPHPPHP &gt;=7.2.5

Since Apr 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kikwik/db-trans-bundle)[ Packagist](https://packagist.org/packages/kikwik/db-trans-bundle)[ RSS](/packages/kikwik-db-trans-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (9)Used By (0)

KikwikDbTransBundle
===================

[](#kikwikdbtransbundle)

Translation loader from database for symfony 5.

This bundle is inspired by the work of andrew72ru in [creative/symfony-db-i18n-bundle](https://github.com/crtweb/symfony-db-i18n-bundle)

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

[](#installation)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require kikwik/db-trans-bundle
```

Update the database to create the translations tables:

```
$ php bin/console make:migration
$ php bin/console doctrine:migrations:migrate
```

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

[](#configuration)

Create the `config/packages/kikwik_db_trans.yaml` config file and define the locales (and clear the cache)

```
kikwik_db_trans:
    locales: [ it, en ]
```

Import routes bundle in `config/routes/kikwik_db_trans.yaml`:

```
kikwik_db_trans_bundle:
    resource: '@KikwikDbTransBundle/Resources/config/routes.xml'
    prefix: '/'
```

Run the `kikwik:db-trans:import-messages` command to init the database translation and import messages from an existing catalogue with the domain as parameter:

```
$ ./bin/console kikwik:db-trans:import-messages myDomain
```

In the translation directory of the project will be created a file named `db_myDomain.locale.db` for each enabled locale

Usage
-----

[](#usage)

You can use these twig translation functions:

- `db_trans` will display database translations.
- `editable_db_trans` will display database translations for normal users, but:
    - if user has the `ROLE_TRANSLATOR` permission then the translation can be modified directly on the page (an icon will appear when the mouse is over the translation)
    - be ware that this function will surround the translated string with a *span* element.

For both functions parameters are same as [trans twig filter](https://symfony.com/doc/current/reference/twig_reference.html#trans):

- message
- arguments (optional)
- domain (optional)
- locale (optional)

Both functions will try to translate appending the domainPrefix so the `{{ db_trans('some.mesage',{},'myDomain') }}` function will search for `some.mesage` key in the `db_myDomain` domain.

If this translation is not found it will fallback to the original domain translation (equivalent to `{{ 'some.mesage'| trans({},'myDomain') }}` )

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Recently: every ~92 days

Total

8

Last Release

753d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bdd98919c8ee6645e854e72f8c6b76c503e12fd10078fb34ae1668cb2bd6d1a?d=identicon)[kikwik](/maintainers/kikwik)

---

Top Contributors

[![kikwik](https://avatars.githubusercontent.com/u/58590255?v=4)](https://github.com/kikwik "kikwik (18 commits)")

### Embed Badge

![Health badge](/badges/kikwik-db-trans-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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