PHPackages                             sentgine/migration - 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. sentgine/migration

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

sentgine/migration
==================

A standalone database migration library for PHP.

v1.0.2(2y ago)01MITPHPPHP ^8.0.0

Since May 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sentgine/migration)[ Packagist](https://packagist.org/packages/sentgine/migration)[ RSS](/packages/sentgine-migration/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Migration by Sentgine
=====================

[](#migration-by-sentgine)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)[![Latest Stable Version](https://camo.githubusercontent.com/84c81c5fcf562533f8a927cb491efdd040430dbb21a3a86f32efc171ba7eac70/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656e7467696e652f6d6967726174696f6e2e737667)](https://packagist.org/sentgine/migration)[![Total Downloads](https://camo.githubusercontent.com/ebd293fd8185a4fc5d0c879dc415e3f85458830e1231c49870b52285e22beac3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73656e7467696e652f6d6967726174696f6e2e737667)](https://packagist.org/packages/sentgine/migration)

This PHP tool represents a standalone migration script for creating and altering tables in a MySQL database.This migration script is designed to be used independently to manage database migrations. It utilizes the [Arise](https://github.com/sentgine/arise) command line tool to execute various migration-related tasks.

### Upcoming Support for PostGreSQL and SQLite:

[](#upcoming-support-for-postgresql-and-sqlite)

**Note**: Support for PostGreSQL and SQLite is currently in development and will be available soon. Stay tuned for updates on these additional database platforms!

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

[](#requirements)

- PHP 8.1.17 or higher.

Available Commands
------------------

[](#available-commands)

- **migrate**: Run the database migrations.
- **make:migration**: Create a migration file.
- **migrate:fresh**: Drop all tables and re-run all migrations.
- **migrate:rollback**: Rollback the last database migration.

(1) You can install the package via Composer to your existing PHP project by running the following command:

```
composer require sentgine/migration:^1.0.0
```

(2) In the root directory of your project, please run:

```
./vendor/sentgine/migration/initialize
```

This will create the executable "arise" command on your project.

(3) In the root directory of your project, you can run:

```
php arise
```

This will display a list of available commands that you can use to manage your database migrations efficiently.

Changelog
---------

[](#changelog)

Please see the [CHANGELOG](https://github.com/sentgine/arise/blob/main/CHANGELOG.md) file for details on what has changed.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

**Migration** is built and maintained by Adrian Navaja.

- Check out some cool tutorials and stuff on [YouTube](https://www.youtube.com/@sentgine)!
- Catch my latest tweets and updates on [Twitter](https://twitter.com/sentgine) (formerly X)!
- Let's connect on a more professional note over on [LinkedIn](https://www.linkedin.com/in/adrian-navaja/)!
- For more information about me and my work, visit my website: [sentgine.com](https://www.sentgine.com/).

License
-------

[](#license)

The MIT License (MIT). Please see the [LICENSE](https://github.com/sentgine/arise/blob/main/LICENSE) file for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Every ~1 days

Total

3

Last Release

733d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.0.1PHP ^8.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/caccf1968157ad073419fca736a91a47bd83a1c3fcc0a0a87ebc240c22d645ca?d=identicon)[sentgine](/maintainers/sentgine)

---

Top Contributors

[![sentgine](https://avatars.githubusercontent.com/u/122154706?v=4)](https://github.com/sentgine "sentgine (8 commits)")

---

Tags

phpmigrationdatabasemysql

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/sentgine-migration/health.svg)

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

###  Alternatives

[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[stefangabos/zebra_database

An advanced, compact and lightweight MySQL database wrapper library, built around PHP's MySQLi extension.

11812.0k](/packages/stefangabos-zebra-database)[popphp/pop-db

Pop Db Component for Pop PHP Framework

1814.6k11](/packages/popphp-pop-db)[riverside/php-orm

PHP ORM micro-library and query builder

111.2k](/packages/riverside-php-orm)

PHPackages © 2026

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