定制 vardumper/ibexa-theme-translations-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vardumper/ibexa-theme-translations-bundle

Composer 安装命令:

composer require vardumper/ibexa-theme-translations-bundle

包简介

Ibexa DXP bundle for managing theme translations with tiered caching (static PHP arrays + Redis + Database)

README 文档

README

Ibexa Logo

IbexaThemeTranslationsBundle

Code Coverage

This is a bundle for Ibexa DXP. It allows managing string translations for use in themes outside Ibexa's regular content object and translation logic. While there are a couple of i18n concepts pre-included with Ibexa, they lack a user interface. So here's a simple Doctrine ORM based approach with a UI, string search, Deepl integration, and very basic approval flow for translation editors.

Requirements

  • Ibexa DXP >= v5.0
  • Ibexa DXP >= v4.4
  • Ibexa Automated Translations installed, activated and configured ibexa/automated-translation if you want to use Deepl Translations

Features

  • Supports Deepl Free API Key - by replacing the Ibexas' default Deepl Client
  • 3-layered caching: OPCache via static PHP Array and Redis if available
  • Event Listeners warm caches when there are changes
  • Brings a console command for cache warming
  • Supports headless frontends by providing JSON and Typescript language files
  • Allows importing/exporting translations to and from CSV
  • Supports Doctrine Fixtures to pre-popultae translations.
  • Supports Ibexa DXP v5.0+ and v4.4+

Installation

1. Install the bundle

If your project uses Symfony Flex (recommended), the bundle, its configuration, and routes are registered automatically:

composer require vardumper/ibexa-theme-translations-bundle

2. Run Migrations

A migration file is automatically copied into your app's migrations/ directory by the Flex recipe. Run it to create the required database tables:

bin/console doctrine:migrations:migrate
Manual installation (without Symfony Flex)

Register the bundle in your config/bundles.php:

return [
    // ...
    vardumper\IbexaThemeTranslationsBundle\IbexaThemeTranslationsBundle::class => ['all' => true],
];

Register Entities

# config/packages/ibexa_theme_translations.yaml
doctrine:
    orm:
        mappings:
            IbexaThemeTranslationsBundle:
                type: attribute
                is_bundle: false
                dir: '%kernel.project_dir%/vendor/vardumper/ibexa-theme-translations-bundle/src/Entity'
                prefix: 'vardumper\IbexaThemeTranslationsBundle\Entity'
                alias: IbexaThemeTranslations

Register Routes

# config/routes/ibexa_theme_translations.yaml
ibexa_theme_translations:
    resource: '@IbexaThemeTranslationsBundle/config/routes.yaml'

Run Migrations

bin/console doctrine:migrations:migrate

Run Tests

This library is fully unit tested with PEST. You can run the tests by executing the following commands in the root directory of the project.

Unit Tests

vendor/bin/pest

Coverage Report

You can also generate a coverage report by running the following command.

XDEBUG_MODE=coverage vendor/bin/pest --coverage-html=coverage-report

vardumper/ibexa-theme-translations-bundle 适用场景与选型建议

vardumper/ibexa-theme-translations-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 145 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 03 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 vardumper/ibexa-theme-translations-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 vardumper/ibexa-theme-translations-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 vardumper/ibexa-theme-translations-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 145
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 33
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-03-15