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

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

skipthedragon/wp-migrations
===========================

Doctrine like Migrations in WordPress.

101PHP

Since Mar 15Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (1)Used By (0)

WordPress Migration
-------------------

[](#wordpress-migration)

Heavily inspired by Symfony/Doctrine migrations, this package provides a simple way to manage your WordPress database schema and data.

### Installation

[](#installation)

```
 composer require skipthedragon/wp-migrations
```

### Pre-requisites

[](#pre-requisites)

This package requires:

- `wpdb` (WordPress database)
- at least PHP 8.1

### Prerequisites

[](#prerequisites)

Migrations must:

- be in the migration folder that you specified in the config
- have a unique timestamp in its name
- implement the Migration interface (`WpMigrations\Architecture\Migration`)
- have `MigrationV` in its name

### Usage

[](#usage)

To run the migrations, you can use the following code:

```
 use WpMigrations\service\MigrationManagerService;

 $config = new \WpMigrations\Architecture\MigrationConfig(
        'path/to/migrations',
        'WpMigrations\\Migrations\\',
        'my_plugin_name'
 );

 $migrationManagerService = new MigrationManagerService($config);
 $migrationManagerService->migrate();
```

Check the `migrate()` method in `service/MigrationManagerService.php` for more options and types of migration.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/35fc4bbc9b99637ce52f153f01d5d7e6a5b72455a679b729c10a947987507d50?d=identicon)[SkipTheDragon](/maintainers/SkipTheDragon)

---

Top Contributors

[![SkipTheDragon](https://avatars.githubusercontent.com/u/31050299?v=4)](https://github.com/SkipTheDragon "SkipTheDragon (3 commits)")

---

Tags

migrations-runnerphpwordpress

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/skipthedragon-wp-migrations/health.svg)](https://phpackages.com/packages/skipthedragon-wp-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)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

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

Reliese Components for Laravel Framework code generation.

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

PHPackages © 2026

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