PHPackages                             macwinnie/wp-db-phinx-helper - 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. macwinnie/wp-db-phinx-helper

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

macwinnie/wp-db-phinx-helper
============================

Helper for WordPress plugins to be able to use \[Phinx\](https://phinx.org/) for DB migrations

1.0.0(3mo ago)076Apache-2.0PHPPHP &gt;=8.1

Since Jun 9Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/macwinnie/wordpress-db-phinx)[ Packagist](https://packagist.org/packages/macwinnie/wp-db-phinx-helper)[ RSS](/packages/macwinnie-wp-db-phinx-helper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (11)Versions (11)Used By (0)

Wordpress Plugin Helper for Database migrations
===============================================

[](#wordpress-plugin-helper-for-database-migrations)

This helper allows you to use [Phinx](https://phinx.org/) for defining Database migrations. The placed config file `phinx.php` will use the Wordpress Configured Database.

You can install this helper library by using `composer`:

```
composer require macwinnie/wp-db-phinx-helper

```

It is recommended to expand the `Macwinnie\WpDbPhinxHelper\DBUtilisator` class by your Plugin-Class:

```
class MyPlugin extends DBUtilisator {

    public static function plugin_activation_method () {
        parent::plugin_activation_method(); # ensures Phinx config placed and migrations run on install / activation / update
    }

    public static function plugin_uninstall_method () {
        parent::plugin_uninstall_method(); # ensures Phinx migrations rolled back in Database on Plugin uninstall
    }
}
```

The static function `static::basePath()` can be used to get your Plugin absolute path on the webserver – and will also check if the Phinx config file is present in the base directory of your Plugin.

Folder structure
----------------

[](#folder-structure)

Your Database migrations shall reside within `db/migrations`, Database seeds within `db/seeds` as childpath of your WordPress plugin.

Phinx takes over creation of paths as you follow the [official documentation](https://book.cakephp.org/phinx/0/en/commands.html). The `phinx` executable can be found in `vendor/bin/phinx` as you install this helper library via `composer`.

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance83

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~64 days

Recently: every ~145 days

Total

10

Last Release

117d ago

Major Versions

0.1.8 → 1.0.02026-01-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/06148942cbb815f08bd44856cdc26cc63446ef01adf1f207100ae76965c017d6?d=identicon)[macwinnie](/maintainers/macwinnie)

---

Top Contributors

[![macwinnie](https://avatars.githubusercontent.com/u/1001936?v=4)](https://github.com/macwinnie "macwinnie (11 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/macwinnie-wp-db-phinx-helper/health.svg)

```
[![Health](https://phpackages.com/badges/macwinnie-wp-db-phinx-helper/health.svg)](https://phpackages.com/packages/macwinnie-wp-db-phinx-helper)
```

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M186](/packages/spatie-laravel-backup)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[bavix/laravel-wallet

It's easy to work with a virtual wallet.

1.3k1.1M11](/packages/bavix-laravel-wallet)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)

PHPackages © 2026

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