定制 vardumper/ibexa-automatic-migrations-bundle 二次开发

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

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

vardumper/ibexa-automatic-migrations-bundle

Composer 安装命令:

composer require vardumper/ibexa-automatic-migrations-bundle

包简介

Ibexa automatic migrations bundle eliminates the need to manually create migrations for various admin changes. Migration files are automatically generated when settings change in the admin panel.

README 文档

README

Ibexa Logo Database Migrations Icon

IbexaAutomaticMigrationsBundle

Latest Stable Version Total Downloads Static Badge Code Coverage

This is a bundle for Ibexa DXP. It automatically creates migrations for content types and content type groups. The goal is to eliminate the need to manually create migrations or test them – instead have Ibexa auto-generate them for us whenever content types change. Migrations are created in the default locations (in src/Migrations/Ibexa/migrations when using ibexa/migrations or in src/MigrationsDefinitions when using kaliop, tanoconsulting, mrk-te open source migration bundle).

Requirements

  • Ibexa DXP >= v5.0
  • Ibexa DXP >= v4.4 (untested)
  • A migrations bundle if using Ibexa OSS

Features

  • Automatically create migrations when changes are made in the admin panel
  • Supports Ibexa DXP v5.x Headless, Experience and Commerce editions via ibexa/migrations
  • Supports Ibexa DXP v5.x. Open Source Edition via mrk-te/ibexa-migration-bundle2

Supported Types of Migrations

  • Content Type Group
  • Content Type
  • Language
  • Object State Group
  • Object State
  • Role
  • Section
  • URL Wildcards
  • URL Manager

Installation

With Symfony Flex (recommended)

Add the recipe endpoint to your project's composer.json once:

"extra": {
    "symfony": {
        "endpoint": [
            "https://raw.githubusercontent.com/vardumper/IbexaAutomaticMigrationsBundle/main/flex/",
            "flex://defaults"
        ]
    }
}

Then install the bundle:

composer require vardumper/ibexa-automatic-migrations-bundle

Symfony Flex will automatically:

  • Register the bundle in config/bundles.php
  • Copy a default configuration to config/packages/ibexa_automatic_migrations.yaml

Without Symfony Flex (manual)

1. Install the bundle

composer require vardumper/ibexa-automatic-migrations-bundle

2. Register the bundle in config/bundles.php

Remember that even though the bundle is activated for all environments, migration files are only created when APP_ENV is set to dev.

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

3. Create the package configuration

Create config/packages/ibexa_automatic_migrations.yaml:

ibexa_automatic_migrations:
    enabled: true
    types:
        content: false
        content_type: true
        content_type_group: true
        section: false
        object_state: false
        object_state_group: false
        user: false
        user_group: false
        role: false
        language: false
        url: false

4. Register the backend controller routes

Create config/routes/dev/ibexa_automatic_migrations.yaml:

ibexa_automatic_migrations:
    resource: '@IbexaAutomaticMigrationsBundle/src/Controller/'
    type: attribute

To configure which migration types are generated, go to Admin > Migrations > Settings.

Testing

This bundle uses Pest for testing.

Running Tests

First, install the development dependencies:

composer install --dev

Then run the 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

Roadmap

  • Allow admins to execute pending migrations in the admin panel
  • Support more types of migrations, not only content types are relevant, but Languages, Sections, etc.
  • Determine or allow configuring which Migration Bundle one wants to use (if kaliop and ibexa bundles are installed)

vardumper/ibexa-automatic-migrations-bundle 适用场景与选型建议

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

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 103
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 28
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-15