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

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

nextras/migrations
==================

Database migrations runner

v3.5.0(4mo ago)1031.3M—3.4%39[18 issues](https://github.com/nextras/migrations/issues)[8 PRs](https://github.com/nextras/migrations/pulls)11BSD-3-ClausePHPPHP &gt;=7.1CI passing

Since Feb 3Pushed 2mo ago14 watchersCompare

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

READMEChangelog (10)Dependencies (16)Versions (48)Used By (11)

Nextras Migrations
==================

[](#nextras-migrations)

[![Build Status](https://github.com/nextras/migrations/actions/workflows/qa.yaml/badge.svg)](https://github.com/nextras/migrations/actions/workflows/qa.yaml)[![Downloads this Month](https://camo.githubusercontent.com/41b705ab8dae2cca69f3fd7fbacd088edc42e2d7e66babb8dd6c8fec29eb2eb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e6578747261732f6d6967726174696f6e732e7376673f7374796c653d666c6174)](https://packagist.org/packages/nextras/migrations)[![Stable Version](https://camo.githubusercontent.com/c5c50bde7d1b42f2491f6c8137b5199e1e27b56193899571188dc43761c4f88d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6578747261732f6d6967726174696f6e732e7376673f7374796c653d666c6174)](https://packagist.org/packages/nextras/migrations)

For more information read **[documentation](https://nextras.org/migrations/docs)**.

**Supported databases:**

- PostgreSQL
- MySQL

**Supported DBALs:**

- [Nextras DBAL](https://github.com/nextras/dbal)
- [Nette Database](https://github.com/nette/database)
- [Doctrine DBAL](https://github.com/doctrine/dbal)
- [dibi](https://github.com/dg/dibi)

Development &amp; Running Integration Tests in Docker
-----------------------------------------------------

[](#development--running-integration-tests-in-docker)

1. Create `./tests/*.ini` files ```
    cp tests/php.docker.ini tests/php.ini
    cp tests/drivers.docker.ini tests/drivers.ini
    ```
2. Start containers ```
    docker-compose up --detach
    ```
3. Run tests ```
    tests/run-in-docker.sh php84 tests/run-integration.sh
    ```

License
-------

[](#license)

*Based on [Clevis\\Migration](https://github.com/Clevis/Migration) by Petr Procházka and further improved.*

New BSD License. See full [license](license.md).

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance78

Regular maintenance activity

Popularity55

Moderate usage in the ecosystem

Community38

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 61.1% 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 ~128 days

Recently: every ~326 days

Total

35

Last Release

126d ago

Major Versions

v2.3.1 → v3.0.0-beta12015-03-24

PHP version history (3 changes)v2.1.0PHP ~5.3

v3.0.0-beta1PHP &gt;=5.4

v3.3.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/953773db6e30161b5e76572bf909c24e8ef07d7419aeebc311e071600ea99bef?d=identicon)[hrach](/maintainers/hrach)

![](https://www.gravatar.com/avatar/6163a0eec16c2bfc9cce0c7c8801b5166cca9af81a146764676059a965044000?d=identicon)[JanTvrdik](/maintainers/JanTvrdik)

---

Top Contributors

[![JanTvrdik](https://avatars.githubusercontent.com/u/175109?v=4)](https://github.com/JanTvrdik "JanTvrdik (190 commits)")[![hrach](https://avatars.githubusercontent.com/u/284263?v=4)](https://github.com/hrach "hrach (82 commits)")[![Mikulas](https://avatars.githubusercontent.com/u/192200?v=4)](https://github.com/Mikulas "Mikulas (6 commits)")[![xificurk](https://avatars.githubusercontent.com/u/117465?v=4)](https://github.com/xificurk "xificurk (4 commits)")[![matej21](https://avatars.githubusercontent.com/u/1276059?v=4)](https://github.com/matej21 "matej21 (4 commits)")[![ondraondra81](https://avatars.githubusercontent.com/u/4330263?v=4)](https://github.com/ondraondra81 "ondraondra81 (4 commits)")[![vojtech-dobes](https://avatars.githubusercontent.com/u/415925?v=4)](https://github.com/vojtech-dobes "vojtech-dobes (3 commits)")[![mrtnzlml](https://avatars.githubusercontent.com/u/978368?v=4)](https://github.com/mrtnzlml "mrtnzlml (2 commits)")[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (2 commits)")[![radimvaculik](https://avatars.githubusercontent.com/u/461164?v=4)](https://github.com/radimvaculik "radimvaculik (2 commits)")[![tsusanka](https://avatars.githubusercontent.com/u/1835345?v=4)](https://github.com/tsusanka "tsusanka (1 commits)")[![Vrtak-CZ](https://avatars.githubusercontent.com/u/112567?v=4)](https://github.com/Vrtak-CZ "Vrtak-CZ (1 commits)")[![o5](https://avatars.githubusercontent.com/u/218562?v=4)](https://github.com/o5 "o5 (1 commits)")[![fabik](https://avatars.githubusercontent.com/u/816866?v=4)](https://github.com/fabik "fabik (1 commits)")[![janbuchar](https://avatars.githubusercontent.com/u/461515?v=4)](https://github.com/janbuchar "janbuchar (1 commits)")[![klobinoid](https://avatars.githubusercontent.com/u/2044802?v=4)](https://github.com/klobinoid "klobinoid (1 commits)")[![MartyIX](https://avatars.githubusercontent.com/u/203266?v=4)](https://github.com/MartyIX "MartyIX (1 commits)")[![adaamz](https://avatars.githubusercontent.com/u/4347332?v=4)](https://github.com/adaamz "adaamz (1 commits)")[![qwerin](https://avatars.githubusercontent.com/u/6010831?v=4)](https://github.com/qwerin "qwerin (1 commits)")[![solcik](https://avatars.githubusercontent.com/u/1543737?v=4)](https://github.com/solcik "solcik (1 commits)")

---

Tags

databasemigrationnextrasphp

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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