PHPackages                             mdantas/phinx-wrapper - 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. mdantas/phinx-wrapper

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

mdantas/phinx-wrapper
=====================

This package simply phinx configuration by passing env vars to commands or base you app console to inject config by constructor.

1.0.0(7y ago)113MITPHP

Since Apr 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/lpj145/phinx-wrap)[ Packagist](https://packagist.org/packages/mdantas/phinx-wrapper)[ RSS](/packages/mdantas-phinx-wrapper/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

No have another library to manage migrations easily and simple like [phinx](https://phinx.org/), and i make this package to easily phinx commands or application console, is intention are you can add commands to your application console or use `bin/phinxwrap` by environments vars or inject `Phinx\Config\Config` to constructor of each command.

### install

[](#install)

```
composer require mdantas/phinx-wrapper
//For generate env file, this not overwrite you env file.
vendor/bin/phinxwrap init_env
```

##### requirements

[](#requirements)

`phinx 0.10.6`

#### Environment example

[](#environment-example)

```
DATABASE_MIGRATIONS_PATH=%%PHINX_CONFIG_DIR%%/db/migrations
DATABASE_SEEDS_PATH=%%PHINX_CONFIG_DIR%%/db/seeds
DATABASE_VERSION=creation
DATABASE_STAGE=development
DATABASE_ADAPTER=mysql
DATABASE_NAME=development_db
DATABASE_USER=root
DATABASE_PASSWORD=
DATABASE_HOST=localhost
DATABASE_PORT=3306
DATABASE_CHARSET=utf8
```

### Examples

[](#examples)

```
//In your app.php
//Config read from env or inject any place you need.
$config = \mdantas\PhinxWrap\PhinxConfiguration::envToConfigInterface(__DIR__.'/../')

$application = new \mdantas\PhinxWrap\ConsoleApplication(
        $config
);
```

```
public function __construct(\Phinx\Config\ConfigInterface $config)
{
    $this->addCommands([
        new Create($config),
        new Status($config),
        new Migrate($config),
        new Rollback($config),
        new SeedCreate($config),
        new SeedRun($config),
        new Test($config),
    ]);
}
```

### Note

[](#note)

All phinx commands are based on package [Symfony Console](https://packagist.org/packages/symfony/console).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

2582d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11980109?v=4)[Marcos Dantas](/maintainers/lpj145)[@lpj145](https://github.com/lpj145)

---

Top Contributors

[![lpj145](https://avatars.githubusercontent.com/u/11980109?v=4)](https://github.com/lpj145 "lpj145 (26 commits)")

---

Tags

migrationswrapperphinxphinx-wrapper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mdantas-phinx-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/mdantas-phinx-wrapper/health.svg)](https://phpackages.com/packages/mdantas-phinx-wrapper)
```

###  Alternatives

[robmorgan/phinx

Phinx makes it ridiculously easy to manage the database migrations for your PHP app.

4.5k46.2M405](/packages/robmorgan-phinx)[odan/phinx-migrations-generator

Migration generator for Phinx

235847.8k23](/packages/odan-phinx-migrations-generator)[masom/lhm

Large Hadron Migrator for phinx

309.3k](/packages/masom-lhm)

PHPackages © 2026

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