PHPackages                             cagartner/module-generatemigration - 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. [Database &amp; ORM](/categories/database)
4. /
5. cagartner/module-generatemigration

ActiveMagento2-module[Database &amp; ORM](/categories/database)

cagartner/module-generatemigration
==================================

Generate migration for your cms pages/blocks, configs, email template

14PHP

Since Jan 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/cagartner/m2-migration-generate)[ Packagist](https://packagist.org/packages/cagartner/module-generatemigration)[ RSS](/packages/cagartner-module-generatemigration/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Generate your CMS Blocks/Pages Migrations (Beta)
================================================

[](#generate-your-cms-blockspages-migrations-beta)

Installment
-----------

[](#installment)

```
composer require cagartner/module-generatemigration

```

Usage
-----

[](#usage)

In your console execute the following commands, the output class file will be in /var/migration

Copy your generated class and put in your migration module.

### Setup Migration:

[](#setup-migration)

Before create any migration your need to setup de migration module, for this run:

```
bin/magento make:migration:init
# Example
bin/magento make:migration:init Cagartner Migration

```

This command will create a new module in app/code folder of magento structure.

```
app
|-- code
    |-- Cagartner
        |-- Migration
            |-- etc
                -- module.xml
            |-- Setup
                |-- migrations
                |-- InstallData.php
                |-- UpgradeData.php
            |-- composer.json
            |-- registration.php

```

Every migration that you create will be generated into migrations folder in that module

### Blocks:

[](#blocks)

```
bin/magento make:migration:block {indentifier} {nameOfMigration}
# Example
bin/magento make:migration:block contact-us-info updateBlockInfo

```

### Pages

[](#pages)

```
bin/magento make:migration:page {indentifier} {nameOfMigration}
# Example
bin/magento make:migration:page home updateHomePage

```

### Emails Templates

[](#emails-templates)

@todo

### Configs

[](#configs)

@todo

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/62e7f97fccdea13b7593c4af2e06b0971fe199b402d5429e2f5df91bf5bc12fb?d=identicon)[cagartner1](/maintainers/cagartner1)

---

Top Contributors

[![cagartner](https://avatars.githubusercontent.com/u/4007696?v=4)](https://github.com/cagartner "cagartner (11 commits)")

### Embed Badge

![Health badge](/badges/cagartner-module-generatemigration/health.svg)

```
[![Health](https://phpackages.com/badges/cagartner-module-generatemigration/health.svg)](https://phpackages.com/packages/cagartner-module-generatemigration)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
