PHPackages                             rmasters/doctrine-migrations-service-provider - 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. rmasters/doctrine-migrations-service-provider

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

rmasters/doctrine-migrations-service-provider
=============================================

Pimple service provider for Doctrine migrations

1.0.0(11y ago)1271MITPHP

Since Jul 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/rmasters/doctrine-migrations-service-provider)[ Packagist](https://packagist.org/packages/rmasters/doctrine-migrations-service-provider)[ RSS](/packages/rmasters-doctrine-migrations-service-provider/feed)WikiDiscussions master Synced yesterday

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

Pimple Doctrine Migrations service provider
===========================================

[](#pimple-doctrine-migrations-service-provider)

Provides the [Doctrine DBAL Migrations](http://www.doctrine-project.org/projects/migrations.html) to Pimple (Silex, Cilex) applications. Based on the Symfony [Doctrine Migrations Bundle](https://github.com/doctrine/DoctrineMigrationsBundle).

Uses [Dragonfly Development's Pimple ORM service-provider](https://github.com/dflydev/dflydev-doctrine-orm-service-provider) to find differences between your database schema and your entities.

Also registers a number of console commands using the [KnpLabs' Console service-provider](https://github.com/KnpLabs/ConsoleServiceProvider).

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

[](#installation)

1. Composer require this package:

    ```
    composer require "rmasters/doctrine-migrations-service-provider:~1.0"

    ```
2. Register in your application:

    ```
    $app = new Silex\Application;
    $app = new Pimple\Container;

    $app->register(new KnpLabs\Provider\ConsoleServiceProvider, [
        'console.name' => 'Application',
        'console.version' => '1',
        'console.project_directory' => __DIR__ . '/../', // your project root
    ]);

    $app->register(new Dflydev\Provider\DoctrineOrm\DoctrineOrmServiceProvider, [
        'orm.proxies.dir' => __DIR__ . '/Proxies',
        'orm.em.options' => [
            'mappings' => [
                [
                    'type' => 'annotation',
                    'namespace' => 'Application\Entity',
                    'path' => __DIR__ . '/../src/Entity',
                    'resources_namespace' => 'Application\Entity',
                    'use_simple_annotation_reader' => false, // Set this to false if you import @ORM for annotations
                ],
            ],
        ],
    ]);

    $app->register(new Rossible\DoctrineMigrationsProvider\DoctrineMigrationsServiceProvider, [
        'doctrine.migrations.namespace' => 'Application\Migration',
        'doctrine.migrations.dir_name' => __DIR__ . '/../src/Migration',
    ]);
    ```

This package requires Pimple 3.x and uses the ServiceProviderInterface and Container interfaces/type-hints that it provides. Silex 2.0 supports this, and Cilex should do soon.

Configuration
-------------

[](#configuration)

ServiceDescriptionDefaultdoctrine.migrations.namespaceNamespace migrations are under`Application\Migrations`doctrine.migrations.dir\_nameDirectory of migration files`app/DoctrineMigrations`doctrine.migrations.table\_nameName of table that tracks executed migrations`"migration_versions"`doctrine.migrations.nameName of migration suite`"Application Migrations"`Commands
--------

[](#commands)

The commands [mirror those in the Doctrine Migrations bundle](http://symfony.com/doc/master/bundles/DoctrineMigrationsBundle/index.html#usage) for Symfony.

You will need to setup a PHP script that can execute console commands. See [src/Resources/console.php](src/Resources/Console.php) for an example.

License
-------

[](#license)

Released under the [MIT License](LICENSE).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~1 days

Total

2

Last Release

4361d ago

Major Versions

0.1.0 → 1.0.02014-07-26

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34284?v=4)[Ross Masters](/maintainers/rmasters)[@rmasters](https://github.com/rmasters)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/rmasters-doctrine-migrations-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/rmasters-doctrine-migrations-service-provider/health.svg)](https://phpackages.com/packages/rmasters-doctrine-migrations-service-provider)
```

###  Alternatives

[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[doctrine/doctrine-migrations-bundle

Symfony DoctrineMigrationsBundle

4.3k188.8M695](/packages/doctrine-doctrine-migrations-bundle)[getgrav/grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS

15.6k86.4k1](/packages/getgrav-grav)[patchlevel/event-sourcing

A lightweight but also all-inclusive event sourcing library with a focus on developer experience

207362.9k13](/packages/patchlevel-event-sourcing)[laravel-doctrine/migrations

Doctrine Migrations for Laravel

792.9M17](/packages/laravel-doctrine-migrations)[kurl/silex-doctrine-migrations-provider

A doctrine migrations provider for silex

22155.1k1](/packages/kurl-silex-doctrine-migrations-provider)

PHPackages © 2026

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