PHPackages                             phisys/migrations-bundle - 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. [Framework](/categories/framework)
4. /
5. phisys/migrations-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

phisys/migrations-bundle
========================

Symfony framework integration bundle for phpmig

v1.0.0(5y ago)0211MITPHPPHP ^7.4|^8.0

Since Apr 27Pushed 5y agoCompare

[ Source](https://github.com/PhiSYS/migrations-bundle)[ Packagist](https://packagist.org/packages/phisys/migrations-bundle)[ RSS](/packages/phisys-migrations-bundle/feed)WikiDiscussions master Synced 3w ago

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

Migrations Bundle
=================

[](#migrations-bundle)

Symfony framework integration for davedevelopment/phpmig

Setup
-----

[](#setup)

```
# config/bundles.php

return [
    PhiSYS\MigrationsBundle\PhiSYSMigrationsBundle::class => ['dev' => true, 'test' => true],
];
```

```
# services.yaml

parameters:
  phisys.migrations.migrations_directory: '%kernel.project_dir%/migrations/postgresql/'
  phisys.migrations.migration_template: '%kernel.project_dir%/vendor/phisys/migrations-bundle/src/Resources/templates/dbalSql.php.twig'
  phisys.migrations.control_table: 'serviceschema.migrations'

services:
  PhiSYS\MigrationsBundle\Infrastructure\Service\Phpmig\Adapter\Adapter:
    class: PhiSYS\MigrationsBundle\Infrastructure\Service\Phpmig\Adapter\DbalAdapter
    public: false
    autoconfigure: true
    arguments:
      $connection: '@connection.dbal.myservice' # Doctrine DBAL Connection
      $tableName: '%phisys.migrations.control_table%'

  PhiSYS\MigrationsBundle\Infrastructure\Service\Phpmig\ConfigurationContainer:
    public: true
    class: PhiSYS\MigrationsBundle\Infrastructure\Service\Phpmig\ConfigurationContainer
    autoconfigure: true
    factory: PhiSYS\MigrationsBundle\Infrastructure\Service\Phpmig\ConfigurationContainer::from
    arguments:
      $adapter: '@PhiSYS\MigrationsBundle\Infrastructure\Service\Phpmig\Adapter\Adapter'
      $directory: '%phisys.migrations.migrations_directory%'
      $template: '%phisys.migrations.migration_template%'
```

Usage
-----

[](#usage)

- Initialize the control table (needed just once): ```
    $ console migrations:init

    ```
- View current migrations status: ```
    $ console migrations:status

    ```

    To use in batch scripts requiring non-zero return values on error, use: ```
    $ console migrations:check

    ```
- Generate a new migration from template: ```
    $ console migrations:generate ThisIsTheMigrationSubject

    ```
- Do pending migrations: ```
    $ console migrations:migrate

    ```

    To do migrations up to (stop in) specified migration id: ```
    $ console migrations:migrate --target 20201014114643

    ```
- Rollback the last migration: ```
    $ console migrations:rollback

    ```

    To rollback down to specified migration id, use: ```
    $ console migrations:rollback --target 20201014114643

    ```
- Up a migration id: ```
    $ console migrations:up 20201014114643

    ```
- Down a migration id: ```
    $ console migrations:down 20201014114643

    ```

    To Re-Do (down and up) an already migrated id, you may use a single command: ```
    $ console migrations:redo 20201014114643

    ```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

1894d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1719325?v=4)[David Strencsev](/maintainers/PhiSYS)[@PhiSYS](https://github.com/PhiSYS)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/phisys-migrations-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/phisys-migrations-bundle/health.svg)](https://phpackages.com/packages/phisys-migrations-bundle)
```

###  Alternatives

[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)

PHPackages © 2026

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