PHPackages                             exan/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. exan/migrations

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

exan/migrations
===============

Simple framework agnostic migrations

1.0.0(3y ago)06MITPHP

Since Apr 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/rxak-php/Migrations)[ Packagist](https://packagist.org/packages/exan/migrations)[ RSS](/packages/exan-migrations/feed)WikiDiscussions master Synced 1mo ago

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

Migrations
==========

[](#migrations)

A very simple framework agnostic migrations package.

```
composer require exan/migrations

```

How it works
------------

[](#how-it-works)

For the migrations, you provide an `up.php` and an optional `down.php`. When running the migrations, all `up.php` scripts will be run if they have not previously ran.

After running a migration, a `.migrated` file will be created. You should add these to your .gitignore `your-migration-dir/*/.migrated`.

Creating a migration
--------------------

[](#creating-a-migration)

You can create a migration using `./vendor/exan/migrations/bin/migrate create your-migration-dir your-migration-name`.

This will create a migration called `(creation date)_your-migration-name` in the directory `your-migration-dir`. You can then modify `up.php` and `down.php`. You can also choose to delete `down.php` if preferred.

Running migrations
------------------

[](#running-migrations)

You can run the migrations using `./vendor/exan/migrations/bin/migrate migrate` and roll them back with `./vendor/exan/migrations/bin/migrate rollback`

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

1126d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a13e10cab42385db1f6f4f0bfd96f8c63ec419746648db02b30e7ea02d2f5df?d=identicon)[exan](/maintainers/exan)

---

Top Contributors

[![Exanlv](https://avatars.githubusercontent.com/u/51094537?v=4)](https://github.com/Exanlv "Exanlv (5 commits)")

### Embed Badge

![Health badge](/badges/exan-migrations/health.svg)

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

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)[guikingone/scheduler-bundle

A Symfony bundle that allows to schedule and create repetitive tasks

114217.4k](/packages/guikingone-scheduler-bundle)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)[psx/sql

Generate type-safe PHP classes from your database

1773.4k4](/packages/psx-sql)[bartlett/php-compatinfo-db

Reference Database of all functions, constants, classes, interfaces on PHP standard distribution and about 110 extensions

1183.0k1](/packages/bartlett-php-compatinfo-db)

PHPackages © 2026

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