PHPackages                             shevaua/db-mysql-migrations - 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. shevaua/db-mysql-migrations

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

shevaua/db-mysql-migrations
===========================

DB migrations for mysql

v1.0.0(6y ago)05PHPPHP ^7.1CI failing

Since Jul 24Pushed 6y agoCompare

[ Source](https://github.com/shevaua/db-mysql-migrations)[ Packagist](https://packagist.org/packages/shevaua/db-mysql-migrations)[ RSS](/packages/shevaua-db-mysql-migrations/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

How To?
=======

[](#how-to)

1. You need an array with configuration params. Ex: /config/sample.php

    ```
     $params = [
         'folder' => 'path_to_folder',
         'ignore' => [
             // list of ignored subpathes
         ],
         ...
     ];

    ```
2. Create a config instance like this one

    ```
     $config = new Shevaua\DB\Mysql\Migrations\Config($params);

    ```
3. Create a controller instance

    ```
     $controller = new Shevaua\DB\Mysql\Migrations\MigrationController($config);

    ```
4. Let's start

    ```
     /** Execute all new migrations */
     $controller->migrate();

     /** Rollback for one step back */
     $controller->rollback();

    ```

Migration table
===============

[](#migration-table)

Migration table contains next columns:

- id: *int*
- group: *int*
- name: *varchar*
- migrated\_at: *timestamp*

Advanced
========

[](#advanced)

There is a way to migrate/rollback migrations step by step

```
/** Execute all new migrations */
$controller->migrate($limit = 1);

/** Rollback for one step back */
$controller->rollback($limit = 1);

```

CHANGELOG
=========

[](#changelog)

[click here](/CHANGELOG.md)

CONTRIBUTE
==========

[](#contribute)

[click here](/CONTRIBUTE.md)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

2533d ago

### Community

Maintainers

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

---

Top Contributors

[![shevaua](https://avatars.githubusercontent.com/u/2833143?v=4)](https://github.com/shevaua "shevaua (15 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/shevaua-db-mysql-migrations/health.svg)

```
[![Health](https://phpackages.com/badges/shevaua-db-mysql-migrations/health.svg)](https://phpackages.com/packages/shevaua-db-mysql-migrations)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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