PHPackages                             maduser/argon-phinx - 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. maduser/argon-phinx

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

maduser/argon-phinx
===================

Phinx migration integration for the Argon runtime stack.

v1.0.0(2mo ago)00MITPHPPHP ^8.2CI passing

Since May 25Pushed 2mo agoCompare

[ Source](https://github.com/judus/argon-phinx)[ Packagist](https://packagist.org/packages/maduser/argon-phinx)[ RSS](/packages/maduser-argon-phinx/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

argon-phinx
===========

[](#argon-phinx)

[![PHP](https://camo.githubusercontent.com/ce3e396e4f1bbbd326f628872a1414656d28065f2712cda0868d8eff07320aec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322b2d626c7565)](https://www.php.net/)[![Build](https://github.com/judus/argon-phinx/actions/workflows/php.yml/badge.svg?branch=main)](https://github.com/judus/argon-phinx/actions)[![codecov](https://camo.githubusercontent.com/95b6db99989ca5a8a6c1526c5f3e4a524954a7fc5cea2032a8e50db4c75fabb0/68747470733a2f2f636f6465636f762e696f2f67682f6a756475732f6172676f6e2d7068696e782f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/judus/argon-phinx)[![Psalm Level](https://camo.githubusercontent.com/b117ce8c0d2bea253622f5cfeb9e21bf20260629a3aab5d40c4f6632eac011cc/68747470733a2f2f73686570686572642e6465762f6769746875622f6a756475732f6172676f6e2d7068696e782f636f7665726167652e737667)](https://shepherd.dev/github/judus/argon-phinx)[![Latest Version](https://camo.githubusercontent.com/96c87a64cc373108313fe1831308405ae88e1e6efaf992e5e9cf1e27e3e5e082/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6164757365722f6172676f6e2d7068696e782e737667)](https://packagist.org/packages/maduser/argon-phinx)[![Total Downloads](https://camo.githubusercontent.com/0aa8273ed2119ac116795696d4f10e00abd4a583d60be4afc46abb6e9d045d01/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6164757365722f6172676f6e2d7068696e782e7376673f636f6c6f723d626c7565)](https://packagist.org/packages/maduser/argon-phinx)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Phinx migration integration for the Argon runtime stack.

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

[](#installation)

```
composer require maduser/argon-phinx
```

Service Providers
-----------------

[](#service-providers)

Register `PhinxServiceProvider`, then configure migrations from an application service provider.

```
use Maduser\Argon\Container\AbstractServiceProvider;
use Maduser\Argon\Container\ArgonContainer;
use Maduser\Argon\Phinx\Config\PhinxConfigRegistry;
use Maduser\Argon\Phinx\Provider\PhinxServiceProvider;

final class AppServiceProvider extends AbstractServiceProvider
{
    #[\Override]
    public function register(ArgonContainer $container): void
    {
        $container->register(PhinxServiceProvider::class);
        $container->register(MigrationServiceProvider::class);
    }
}

final class MigrationServiceProvider extends AbstractServiceProvider
{
    #[\Override]
    public function register(ArgonContainer $container): void
    {
        $basePath = $container->getParameters()->get('basePath');
        assert(is_string($basePath));

        $container->get(PhinxConfigRegistry::class)
            ->addMigrationPath($basePath . '/database/migrations')
            ->addEnvironment('default', [
                'adapter' => 'sqlite',
                'name' => $basePath . '/storage/database/argon.sqlite',
                'suffix' => '',
            ])
            ->setDefaultEnvironment('default');
    }
}
```

For SQLite, Phinx appends `.sqlite3` by default. Use `'suffix' => ''` when the configured `name` is already the full database file path.

Console Commands
----------------

[](#console-commands)

The provider exposes Phinx through the Argon console command tag:

```
php bin/console phinx:status
php bin/console phinx:migrate
php bin/console phinx:rollback
php bin/console phinx:create CreateUsers
```

The command names are prefixed to avoid collisions with application commands.

Boundaries
----------

[](#boundaries)

- This package wires Phinx into Argon. It does not add a migration DSL.
- Applications own migration paths, seed paths, environments, and database credentials.
- Configuration is explicit service-provider code, not automatic file discovery.
- Multiple environments are supported through Phinx configuration arrays.

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

[](#quality-gates)

```
composer check
composer test:coverage
composer psalm
composer phpcs
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance88

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

60d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fb9da5a15010d335622bf9f465a32ef79c8d1cffcd139c2a9114736b72e2c13?d=identicon)[jdu](/maintainers/jdu)

---

Top Contributors

[![judus](https://avatars.githubusercontent.com/u/1478654?v=4)](https://github.com/judus "judus (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/maduser-argon-phinx/health.svg)

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

###  Alternatives

[odan/phinx-migrations-generator

Migration generator for Phinx

233913.8k25](/packages/odan-phinx-migrations-generator)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k16.4k85](/packages/elgg-elgg)

PHPackages © 2026

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