PHPackages                             jiabin/migraine - 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. jiabin/migraine

ActiveProject[Database &amp; ORM](/categories/database)

jiabin/migraine
===============

Damn simple migrations for PHP

v1.0.0(12y ago)114MITPHPPHP &gt;=5.3.0

Since Jun 23Pushed 12y ago3 watchersCompare

[ Source](https://github.com/jiabin/migraine)[ Packagist](https://packagist.org/packages/jiabin/migraine)[ Docs](https://github.com/jiabin/migraine)[ RSS](/packages/jiabin-migraine/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (10)Versions (2)Used By (0)

[![Mind Blowing by Luis Prado from The Noun Project](https://camo.githubusercontent.com/15ab737d41f613d6788148804827aa414a617abff0202ac822ae2733fdbbda9d/687474703a2f2f6a696162696e2e6769746875622e696f2f6d69677261696e652f6c6f676f2e706e67)](https://camo.githubusercontent.com/15ab737d41f613d6788148804827aa414a617abff0202ac822ae2733fdbbda9d/687474703a2f2f6a696162696e2e6769746875622e696f2f6d69677261696e652f6c6f676f2e706e67) Migraine
==============================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-migraine)

Migraine is a PHP-based command-line utility for simplifying the process of creating/executing migrations.

Requirements
------------

[](#requirements)

The only requirement for Migraine is PHP 5.4+

Install
-------

[](#install)

```
curl -sS http://jiabin.github.io/migraine/installer | /bin/bash

```

Quick start
-----------

[](#quick-start)

**Show all available commands**

```
php migraine.phar

```

**Migrate to the latest version**

```
php migraine.phar migrate

```

**Create a new migration**

```
php migraine.phar create

```

**Print version and exit**

```
php migraine.phar -V

```

Commands reference
------------------

[](#commands-reference)

commanddescriptioncreateCreates a new migrationdump-referenceDumps the default configuration for MigrainehelpDisplays help for a commandinitCreates a new configuration filelistLists commandsmigrateExecute migrationsresetReset migraineself-updateUpdates migraine.phar to the latest versionstatusShows migration statusSupported types
---------------

[](#supported-types)

- file
- mongo
- redis

Supported bridges
-----------------

[](#supported-bridges)

### 1) Composer

[](#1-composer)

#### Configuration reference

[](#configuration-reference)

optiondefaultautoloadvendor/autoload.php### 2) Symfony

[](#2-symfony)

#### Configuration reference

[](#configuration-reference-1)

optiondefaultbootstrapapp/bootstrap.php.cachekernelapp/AppKernel.phpenvdevdebugfalseSample configuration (migraine.yml)
-----------------------------------

[](#sample-configuration-migraineyml)

```
# Migrations will be stored and read from this path
migrations_path:      ./migrations

# Number of "zeros" to append to version
pad_length:           3

# Application bridge
bridge:

    # One of "composer"; "symfony"
    name:                 composer # Required

    # Bridge options
    options:
        autoload: vendor/autoload.php

# Type configuration
types:
    file:
        lock_file:            migraine.lock
    # redis:
    #     host:                 'tcp://localhost:6379'
    #     prefix:               null
    # mongo:
    #     server:               'mongodb://localhost:27017'
    #     database:             migraine

```

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/jiabin/migraine/issues).

Contributing
------------

[](#contributing)

First you need to install composer dependencies:

```
composer install

```

Now you can run migraine by:

```
./bin/migraine

```

To build a phar file you will need [box](http://box-project.org)

```
box build

```

Then you can launch the app by:

```
./migraine.phar

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4391d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/242627?v=4)[Eymen Gunay](/maintainers/eymengunay)[@eymengunay](https://github.com/eymengunay)

---

Top Contributors

[![eymengunay](https://avatars.githubusercontent.com/u/242627?v=4)](https://github.com/eymengunay "eymengunay (53 commits)")

---

Tags

migration

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jiabin-migraine/health.svg)

```
[![Health](https://phpackages.com/badges/jiabin-migraine/health.svg)](https://phpackages.com/packages/jiabin-migraine)
```

###  Alternatives

[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M560](/packages/shopware-core)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M731](/packages/sylius-sylius)[contao/core-bundle

Contao Open Source CMS

1231.6M2.7k](/packages/contao-core-bundle)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M505](/packages/pimcore-pimcore)

PHPackages © 2026

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