PHPackages                             dosfarma/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. dosfarma/migrations-bundle

Abandoned → [PhiSYS/migrations-bundle](/?search=PhiSYS%2Fmigrations-bundle)Symfony-bundle[Framework](/categories/framework)

dosfarma/migrations-bundle
==========================

Symfony framework integration bundle for phpmig

02791PHP

Since Oct 14Pushed 5y ago5 watchersCompare

[ Source](https://github.com/DosFarma/migrations-bundle)[ Packagist](https://packagist.org/packages/dosfarma/migrations-bundle)[ RSS](/packages/dosfarma-migrations-bundle/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#migrations-bundle)

Symfony framework integration for davedevelopment/phpmig

Setup
-----

[](#setup)

```
# config/bundles.php

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

```
# services.yaml

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

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

  DosFarma\MigrationsBundle\Infrastructure\Service\Phpmig\ConfigurationContainer:
    public: true
    class: DosFarma\MigrationsBundle\Infrastructure\Service\Phpmig\ConfigurationContainer
    autoconfigure: true
    factory: DosFarma\MigrationsBundle\Infrastructure\Service\Phpmig\ConfigurationContainer::from
    arguments:
      $adapter: '@DosFarma\MigrationsBundle\Infrastructure\Service\Phpmig\Adapter\Adapter'
      $directory: '%dos_farma.migrations.migrations_directory%'
      $template: '%dos_farma.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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity32

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://avatars.githubusercontent.com/u/1719325?v=4)[David Strencsev](/maintainers/PhiSYS)[@PhiSYS](https://github.com/PhiSYS)

![](https://www.gravatar.com/avatar/a4ac600fd682ca911e570e057fdb88637faefb4e381a606211c687dbaaade3c5?d=identicon)[sergiohm](/maintainers/sergiohm)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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