runroom-packages / doctrine-translatable-bundle
使用Symfony管理可翻译的doctrine实体
0.19.1
2024-09-06 13:58 UTC
Requires
- php: ^8.1
- doctrine/collections: ^2.0
- doctrine/dbal: ^3.6
- doctrine/doctrine-bundle: ^2.10
- doctrine/orm: ^2.19 || ^3.2
- doctrine/persistence: ^3.1
- symfony/dependency-injection: ^5.4 || ^6.4 || ^7.1
- symfony/framework-bundle: ^5.4 || ^6.4 || ^7.1
- symfony/http-kernel: ^5.4 || ^6.4 || ^7.1
- symfony/translation-contracts: ^2.4 || ^3.0
Requires (Dev)
- dama/doctrine-test-bundle: ^8.0
- matthiasnoback/symfony-config-test: ^5.1
- matthiasnoback/symfony-dependency-injection-test: ^5.1
- phpunit/phpunit: ^9.6
- symfony/phpunit-bridge: ^7.1
- symfony/translation: ^5.4 || ^6.4 || ^7.1
- zenstruck/foundry: ^1.38.2 || ^2.0
This package is auto-updated.
Last update: 2024-09-10 10:09:54 UTC
README
这个包允许直接在Sonata Backoffice上定义和使用翻译,作为Symfony中yaml
翻译的替代。
安装
打开命令行,进入你的项目目录,然后执行以下命令以下载此包的最新稳定版本
composer require runroom-packages/doctrine-translatable-bundle
启用包
然后,通过将其添加到项目config/bundles.php
文件中注册的包列表来启用该包
// config/bundles.php return [ // ... Runroom\DoctrineTranslatableBundle\RunroomDoctrineTranslatableBundle::class => ['all' => true], ];
贡献
此包的源代码包含在Runroom monorepo中。我们欢迎在runroom/runroom-packages上为此包做出贡献。
许可证
此包受MIT许可证的约束。