kmergen / doctrine-translatable
Doctrine Translatable Bundle
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- doctrine/common: ^3.3
- doctrine/dbal: ^3.3
- doctrine/doctrine-bundle: ^2.6
- doctrine/orm: ^3.0
- doctrine/persistence: ^2.5|^3.0
- nette/utils: ^3.2
- ramsey/uuid: ^4.2
- symfony/cache: ^5.4|^6.0
- symfony/dependency-injection: ^5.4|^6.0
- symfony/framework-bundle: ^5.4|^6.0
- symfony/http-kernel: ^5.4|^6.0
- symfony/security-core: ^5.4|^6.0
- symfony/string: ^5.4|^6.0
- symfony/translation-contracts: ^2.4|^3.0
Requires (Dev)
- ext-pdo_mysql: *
- php-parallel-lint/php-parallel-lint: ^1.3
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.7.10
- phpstan/phpstan-doctrine: ^1.3
- phpstan/phpstan-phpunit: ^1.1
- phpunit/phpunit: ^9.6
- psr/log: ^1.1
- rector/rector: ^0.13.4
- symplify/easy-ci: ^10.2.9
- symplify/easy-coding-standard: ^10.2.9
- symplify/package-builder: ^10.2.9
- symplify/phpstan-extensions: ^10.2.9
- symplify/phpstan-rules: ^10.2.9
README
This symfony bundle provides a behavior to translate Doctrine entities in Symfony. This bundle is compatible with Symfony versions equal or greater Symfony 7.0.
For other Symfony versions you should consider to use the DoctrineBehaviors bundle.
It currently handles:
Install
composer require kmergen/doctrine-translatable
Usage
All you have to do is to define a Doctrine entity:
- implemented interface
- add a trait
For further informations how to use it, you can also look the documentation of DoctrineBehaviors bundle.
Credits
This bundle is highly inspired by the excellent work of Knplaps on its bundle:
In fact, we have used some of its processes, commands, views, and some of its attribute names to somehow standardize the bundle and make it easier for us to build our own bundle for Symfony.