PHPackages                             wpjscc/schema-migrations-generator - 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. wpjscc/schema-migrations-generator

ActiveLibrary

wpjscc/schema-migrations-generator
==================================

Cycle ORM Migration generation

2.x-dev(6mo ago)04MITPHPPHP &gt;=8.1

Since Nov 9Pushed 6mo agoCompare

[ Source](https://github.com/wpjscc/schema-migrations-generator)[ Packagist](https://packagist.org/packages/wpjscc/schema-migrations-generator)[ GitHub Sponsors](https://github.com/sponsors/cycle)[ RSS](/packages/wpjscc-schema-migrations-generator/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelogDependencies (10)Versions (1)Used By (0)

Cycle ORM - Migration Generator
===============================

[](#cycle-orm---migration-generator)

[![Latest Stable Version](https://camo.githubusercontent.com/02092ec1f897500c41e833bb1df4a97cfc2cb20bf02c5ef6811c4f7e62737dbd/68747470733a2f2f706f7365722e707567782e6f72672f6379636c652f736368656d612d6d6967726174696f6e732d67656e657261746f722f76657273696f6e)](https://packagist.org/packages/cycle/schema-migrations-generator)[![Build Status](https://github.com/cycle/schema-migrations-generator/workflows/build/badge.svg)](https://github.com/cycle/schema-migrations-generator/actions)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/78e902b6775934642e2d81fa8e5b86b8c3e2a1715fcf202ad4f8a8dd0159a1cf/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6379636c652f736368656d612d6d6967726174696f6e732d67656e657261746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d322e78)](https://scrutinizer-ci.com/g/cycle/schema-migrations-generator/?branch=2.x)[![Codecov](https://camo.githubusercontent.com/b6004c7dbf6b60d802fc3b4eb1beac65ad1fa13fd7ba1f356359cc3470d7b900/68747470733a2f2f636f6465636f762e696f2f67682f6379636c652f736368656d612d6d6967726174696f6e732d67656e657261746f722f67726170682f62616467652e737667)](https://codecov.io/gh/cycle/schema-migrations-generator)

By migration generator package you can automatically generate a set of migration files for Cycle ORM during schema compilation. In this case, you have the freedom to alter such migrations manually before running them.

Installation
------------

[](#installation)

```
composer require cycle/schema-migrations-generator
```

Configuration
-------------

[](#configuration)

```
use Cycle\Migrations;
use Cycle\Schema\Registry;
use Cycle\Schema\Definition\Entity;
use Cycle\Database;
use Cycle\Database\Config;
use Cycle\Schema\Generator\Migrations\GenerateMigrations;

$dbal = new Database\DatabaseManager(new Config\DatabaseConfig([
    'default' => 'default',
    'databases' => [
        'default' => [
            'connection' => 'sqlite'
        ]
    ],
    'connections' => [
        'sqlite' => new Config\SQLiteDriverConfig(
            connection: new Config\SQLite\MemoryConnectionConfig(),
            queryCache: true,
        ),
    ]
]));

$migrator = new Migrations\Migrator(
    $config,
    $dbal,
    new Migrations\FileRepository($config)
);

$registry = new Registry($dbal);
$registry->register(....);

$generator = new GenerateMigrations(
    $migrator->getRepository(),
    $migrator->getConfig()
);
```

Running
-------

[](#running)

Migration generator creates set of migrations needed to sync database schema with desired state. Each database will receive its own migration.

```
$generator->run($registry);
```

License:
--------

[](#license)

The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. Maintained by [Spiral Scout](https://spiralscout.com).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance67

Regular maintenance activity

Popularity3

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

190d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/76907477?v=4)[wpjscc](/maintainers/wpjscc)[@wpjscc](https://github.com/wpjscc)

---

Top Contributors

[![wolfy-j](https://avatars.githubusercontent.com/u/796136?v=4)](https://github.com/wolfy-j "wolfy-j (31 commits)")[![roxblnfk](https://avatars.githubusercontent.com/u/4152481?v=4)](https://github.com/roxblnfk "roxblnfk (22 commits)")[![msmakouz](https://avatars.githubusercontent.com/u/67324318?v=4)](https://github.com/msmakouz "msmakouz (9 commits)")[![alexndr-novikov](https://avatars.githubusercontent.com/u/7372962?v=4)](https://github.com/alexndr-novikov "alexndr-novikov (9 commits)")[![gam6itko](https://avatars.githubusercontent.com/u/3841197?v=4)](https://github.com/gam6itko "gam6itko (8 commits)")[![butschster](https://avatars.githubusercontent.com/u/773481?v=4)](https://github.com/butschster "butschster (4 commits)")[![rauanmayemir](https://avatars.githubusercontent.com/u/9691?v=4)](https://github.com/rauanmayemir "rauanmayemir (3 commits)")[![SerafimArts](https://avatars.githubusercontent.com/u/2461257?v=4)](https://github.com/SerafimArts "SerafimArts (2 commits)")[![wpjscc](https://avatars.githubusercontent.com/u/76907477?v=4)](https://github.com/wpjscc "wpjscc (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wpjscc-schema-migrations-generator/health.svg)

```
[![Health](https://phpackages.com/badges/wpjscc-schema-migrations-generator/health.svg)](https://phpackages.com/packages/wpjscc-schema-migrations-generator)
```

PHPackages © 2026

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