Download the PHP package rmasters/doctrine-migrations-service-provider without Composer
On this page you can find all versions of the php package rmasters/doctrine-migrations-service-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rmasters/doctrine-migrations-service-provider
More information about rmasters/doctrine-migrations-service-provider
Files in rmasters/doctrine-migrations-service-provider
Package doctrine-migrations-service-provider
Short Description Pimple service provider for Doctrine migrations
License MIT
Informations about the package doctrine-migrations-service-provider
Pimple Doctrine Migrations service provider
Provides the Doctrine DBAL Migrations to Pimple (Silex, Cilex) applications. Based on the Symfony Doctrine Migrations Bundle.
Uses Dragonfly Development's Pimple 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.
Installation
-
Composer require this package:
composer require "rmasters/doctrine-migrations-service-provider:~1.0"
- Register in your application:
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
Service | Description | Default |
---|---|---|
doctrine.migrations.namespace | Namespace migrations are under | Application\Migrations |
doctrine.migrations.dir_name | Directory of migration files | app/DoctrineMigrations |
doctrine.migrations.table_name | Name of table that tracks executed migrations | "migration_versions" |
doctrine.migrations.name | Name of migration suite | "Application Migrations" |
Commands
The commands mirror those in the Doctrine Migrations bundle for Symfony.
You will need to setup a PHP script that can execute console commands. See src/Resources/console.php for an example.
License
Released under the MIT License.
All versions of doctrine-migrations-service-provider with dependencies
doctrine/migrations Version dev-master
knplabs/console-service-provider Version dev-pimple-3 as dev-master
dflydev/doctrine-orm-service-provider Version ~2.0