PHPackages                             janwebdev/translatable-entity-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. janwebdev/translatable-entity-bundle

ActiveSymfony-bundle[Localization &amp; i18n](/categories/localization)

janwebdev/translatable-entity-bundle
====================================

Make Entity translatable

v2.0.2(3mo ago)0135MITPHPPHP ^8.2

Since Jun 6Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/janwebdev/translatable-entity-bundle)[ Packagist](https://packagist.org/packages/janwebdev/translatable-entity-bundle)[ Docs](https://github.com/janwebdev/translatable-entity-bundle)[ RSS](/packages/janwebdev-translatable-entity-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (10)Versions (7)Used By (0)

Symfony Bundle for Making Translatable Entities
-----------------------------------------------

[](#symfony-bundle-for-making-translatable-entities)

[![Unit Tests](https://github.com/janwebdev/translatable-entity-bundle/actions/workflows/run-tests.yml/badge.svg)](https://github.com/janwebdev/translatable-entity-bundle/actions/workflows/run-tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/05724a0bad4277738d64b32b457b303ecbf6d9396741147aed85dff86fc029ca/68747470733a2f2f706f7365722e707567782e6f72672f6a616e7765626465762f7472616e736c617461626c652d656e746974792d62756e646c652f76)](//packagist.org/packages/janwebdev/translatable-entity-bundle)[![Total Downloads](https://camo.githubusercontent.com/0c06ae489ddefc005b31592d8c07f5c5c83f98342ad8fa60a11d48bdd099ae0e/68747470733a2f2f706f7365722e707567782e6f72672f6a616e7765626465762f7472616e736c617461626c652d656e746974792d62756e646c652f646f776e6c6f616473)](//packagist.org/packages/janwebdev/translatable-entity-bundle)[![License](https://camo.githubusercontent.com/359f8200e0c800842ba019d5919f235620d11b9957bbede3e9f5db515476f2cd/68747470733a2f2f706f7365722e707567782e6f72672f6a616e7765626465762f7472616e736c617461626c652d656e746974792d62756e646c652f6c6963656e7365)](//packagist.org/packages/janwebdev/translatable-entity-bundle)

A modern Symfony bundle for creating translatable entities with support for **PHP 8.2+** and **Symfony 6.4/7.x**.

### Features

[](#features)

- 🚀 **Modern PHP 8.2+** - Full type safety with typed properties and return types
- ⚡ **Performance Optimized** - Reflection caching and efficient translation lookups
- 🎯 **Symfony 7.x Ready** - Uses modern Symfony attributes and autowiring
- 🔄 **Flexible Fallback System** - Configurable translation fallback mechanisms
- 📦 **Easy Integration** - Simple setup with Doctrine ORM

---

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

[](#table-of-contents)

1. [Requirements](#requirements)
2. [Installation](#installation)
3. [Enable the Bundle](#enable-the-bundle)
4. [Creating Translatable Entities](#creating-translatable-entities)
5. [Usage in Controllers](#usage-in-controllers)
6. [Repository Examples](#repository-examples)
7. [Form Integration](#form-integration)
8. [Customizing Translation Behavior](#customizing-translation-behavior)
9. [Testing](#testing)

---

Requirements
------------

[](#requirements)

- **PHP**: 8.2 or higher
- **Symfony**: 6.4 or higher
- **Doctrine ORM**: 2.19 or 3.x

---

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

[](#installation)

Install the bundle via Composer:

```
composer require janwebdev/translatable-entity-bundle
```

---

Enable the Bundle
-----------------

[](#enable-the-bundle)

The bundle should be automatically registered. Verify in `config/bundles.php`:

```
