PHPackages                             lephare/doctrine-json-translation-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. [Localization &amp; i18n](/categories/localization)
4. /
5. lephare/doctrine-json-translation-bundle

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

lephare/doctrine-json-translation-bundle
========================================

Integrate le-phare/doctrine-json-translation in Symfony

v1.0.0(2mo ago)00MITPHPPHP ^8.2CI passing

Since Mar 9Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/le-phare/doctrine-json-translation-bundle)[ Packagist](https://packagist.org/packages/lephare/doctrine-json-translation-bundle)[ RSS](/packages/lephare-doctrine-json-translation-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

DoctrineJsonTranslationBundle
=============================

[](#doctrinejsontranslationbundle)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)

Features
--------

[](#features)

- Doctrine type to store translations in multiple locales in JSON format
- Symfony form type to edit translations

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

[](#installation)

```
composer require lephare/doctrine-json-translation-bundle
```

Usage
-----

[](#usage)

### 1. Configure Doctrine

[](#1-configure-doctrine)

First, you need to register the custom `translated` type in your Doctrine configuration.

Add this to `config/packages/doctrine.yaml`:

```
# config/packages/doctrine.yaml
doctrine:
    dbal:
        types: LePhare\DoctrineJsonTranslation\DBAL\TranslatedType
```

### 2. Use in an entity

[](#2-use-in-an-entity)

```
#[ORM\Column(type: 'translated')]
protected TranslatedField $title;
```

### 3. Use in a form

[](#3-use-in-a-form)

```
use LePhare\DoctrineJsonTranslation\Form\Type\TranslatedType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

class ExampleType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options): void
    {
        $builder
            ->add('title', TranslatedType::class)
        ;
    }
}
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance87

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

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

64d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/820897f2ee62be18fe02b39d77c6564532d207b20b159d3a388e535d3d3e69da?d=identicon)[thislg](/maintainers/thislg)

---

Top Contributors

[![thislg](https://avatars.githubusercontent.com/u/7049020?v=4)](https://github.com/thislg "thislg (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lephare-doctrine-json-translation-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/lephare-doctrine-json-translation-bundle/health.svg)](https://phpackages.com/packages/lephare-doctrine-json-translation-bundle)
```

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)

PHPackages © 2026

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