PHPackages                             translation/px-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. translation/px-translation-bundle

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

translation/px-translation-bundle
=================================

Enable doctrine entities translations

1.1.x-dev(8y ago)1691MITPHPPHP &gt;=5.3.2

Since Oct 27Pushed 8y ago2 watchersCompare

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

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

pxtranslationBundle
===================

[](#pxtranslationbundle)

This bundle is about making an entity translatable and creating forms to store translated data into database. It's based on Gedmo Doctrine2 extensions.

Features
========

[](#features)

- Updates the database to handle translation
- Persist and get translated values
- Configure as many supported langages as you want
- Custom form types to render in forms

Install pxtranslationBundle
===========================

[](#install-pxtranslationbundle)

1/ Add require to your composer.json and update:

```
"translation/px-translation-bundle" : "dev-master"

```

2/ Update your AppKernel.php:

```
new translation\pxTranslationBundle\translationpxTranslationBundle()

```

3/ Update your assets :

```
php bin/console assets:install

```

4/ Add the translation custom theme uder Twig in your config.yml :

```
twig:
  form_themes:
     - '@translationpxTranslation/Form/translatable_text-prototype.html.twig'

```

5/ Make sure JQuery is included in your base template:

```

```

6/ Update your entities by this command, you need to make sure that you delete the correspondents getter and setters before executing the command line :

```
php bin/console doctrine:translate:entity myBundle:entityName column1,column2
(exple: php bin/console doctrine:translate:entity AppBundle:Book name,description)

```

7/ Update your database:

```
php bin/console doctrine:schema:update --force

```

8/ Update your form type:

```
- text:
  ->add('column', translatableType::class, array("data" => $builder->getData(), "type" => FlagTextType::class))
  (exple: ->add('name', translatableType::class, array("data" => $builder->getData(), "type" => FlagTextType::class)))

- textarea:
   ->add('comumn', translatableType::class, array("data" => $builder->getData(), "type" => FlagTextAreaType::class))
   (exple: ->add('description', translatableType::class, array("data" => $builder->getData(), "type" => FlagTextAreaType::class)))

```

9/ Just submit your form !

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

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

Total

2

Last Release

3001d ago

### Community

Maintainers

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

---

Top Contributors

[![inesmokni](https://avatars.githubusercontent.com/u/3668494?v=4)](https://github.com/inesmokni "inesmokni (45 commits)")

---

Tags

translation

### Embed Badge

![Health badge](/badges/translation-px-translation-bundle/health.svg)

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

###  Alternatives

[willdurand/js-translation-bundle

A pretty nice way to expose your translation messages to your JavaScript.

58917.1M55](/packages/willdurand-js-translation-bundle)[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[jms/translation-bundle

Puts the Symfony Translation Component on steroids

42510.8M63](/packages/jms-translation-bundle)[jms/i18n-routing-bundle

This bundle allows you to create i18n routes.

3635.3M17](/packages/jms-i18n-routing-bundle)[elao/form-translation-bundle

Generate translation key for forms

44225.4k1](/packages/elao-form-translation-bundle)[leaseweb/gettext-translation-bundle

Easy to use and native (faster) gettext translation support

2460.6k](/packages/leaseweb-gettext-translation-bundle)

PHPackages © 2026

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