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 yesterday

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 21% 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

799d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58590255?v=4)[Kikwik](/maintainers/kikwik)[@kikwik](https://github.com/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

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[sylius/sylius

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

8.5k5.9M737](/packages/sylius-sylius)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[prestashop/prestashop

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

9.1k17.8k](/packages/prestashop-prestashop)

PHPackages © 2026

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