PHPackages                             rkr/php-db-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. rkr/php-db-migrations

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

rkr/php-db-migrations
=====================

Not yet powerful library to execute db-migration files

0.3.1(2mo ago)2889MITPHPPHP &gt;= 8.0CI passing

Since Oct 22Pushed 2mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (16)Used By (0)

db-migrations
=============

[](#db-migrations)

Lightweight library to execute ordered DB migration files.

Features
--------

[](#features)

- Sequential execution with automatic rollback of previous steps when a step fails.
- Supports plain SQL and fluent migration builders.
- Fluent migrations derive DOWN steps from the current schema.
- Strict feature gating per engine/version (unsupported features skip the UP step with a log warning).

Basic usage
-----------

[](#basic-usage)

```
