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

ActiveWordpress-muplugin[Database &amp; ORM](/categories/database)

sympress/migration
==================

MU plugin for handling migrations on website level

1.0.1(1mo ago)11121GPL-2.0-or-laterPHPPHP ^8.5CI passing

Since Jun 14Pushed 1w agoCompare

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

READMEChangelog (2)Dependencies (7)Versions (3)Used By (1)

Database Migration System
=========================

[](#database-migration-system)

[![Checks](https://camo.githubusercontent.com/b399d59931985101dc0e64e6a0bc616b8f842164ecda6526cfccebb08dec7771/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f53796d50726573732f6d6967726174696f6e2f71612e796d6c3f6272616e63683d6d61696e266c6162656c3d636865636b73)](https://github.com/SymPress/migration/actions/workflows/qa.yml) [![Release](https://camo.githubusercontent.com/d39972c3467db5d46d54dd24484dc968d7bc38c78fb1abaa8fdc76325bd266dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f53796d50726573732f6d6967726174696f6e3f6c6162656c3d72656c65617365)](https://github.com/SymPress/migration/releases) [![PHP](https://camo.githubusercontent.com/b951933dc97aadc6fce67230558808edde2005afa5dc04faae0efc253d2f2299/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f73796d70726573732f6d6967726174696f6e2f7068702e7376673f6c6162656c3d706870)](https://packagist.org/packages/sympress/migration) [![Downloads](https://camo.githubusercontent.com/8b68bffeaa26d766bd8e1f8def504451c880c9c2f2fd43e4d880673cfe7c8fda/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d70726573732f6d6967726174696f6e2e7376673f6c6162656c3d646f776e6c6f616473)](https://packagist.org/packages/sympress/migration/stats) [![License: GPL-2.0-or-later](https://camo.githubusercontent.com/26f8b6541ea045cc1dbc2267208158b5a7ebbf5cf437c4b486d80fee9386f77e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d2d322e302d2d6f722d2d6c617465722d626c75652e737667)](LICENSE)

Standalone WordPress MU-plugin for versioned database migrations with Doctrine-style runtime and metadata management.

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

[](#requirements)

- WordPress 6.9
- PHP 8.5
- Composer autoloading inside the package directory

The package now targets a real PHP 8.5 baseline and uses modern language features that are stable in the current runtime and QA toolchain, including typed class constants, read-only get-hook properties, `readonly` classes, `#[\Override]`, and selective `#[\NoDiscard]`.

Quality Gates
-------------

[](#quality-gates)

- `friendsofphp/php-cs-fixer` handles deterministic PSR-12-oriented formatting.
- `inpsyde/php-coding-standards` handles the WordPress, VIP, PHPCompatibility, and security-oriented PHPCS audit for `migration.php` and `src/`.
- `phpstan/phpstan` and PHPUnit cover the full package, including the PHP 8.5 get-hook value objects that PHPCS cannot parse reliably yet.

Installation
------------

[](#installation)

1. Place the package in `wp-content/mu-plugins/database-migration-system/`.
2. Run `composer install` inside the package directory.
3. Add a root MU loader file because WordPress does not autoload subdirectories.

```
