rodrigonull / silex-doctrine-migrations-provider
A doctrine migrations provider for silex
Installs: 77
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 11
pkg:composer/rodrigonull/silex-doctrine-migrations-provider
Requires
- php: ^5.5|^7
Requires (Dev)
- doctrine/dbal: ~2.2
- doctrine/migrations: ^1.0
- doctrine/orm: ~2.2
- phpunit/phpunit: ~3.7
- silex/silex: ~1.0
- symfony/console: ~2.3
This package is not auto-updated.
Last update: 2025-10-20 19:21:11 UTC
README
A doctrine migrations provider for Silex.
Installation
Install the provider through Composer:
composer require rodrigonull/silex-doctrine-migrations-provider
Usage
Add the provider with your config...
<?php $console = new \Symfony\Component\Console\Application(); $app->register( new \Null\Silex\Provider\DoctrineMigrationsProvider($console), array( 'migrations.directory' => __DIR__ . '/../path/to/migrations', 'migrations.name' => 'Acme Migrations', 'migrations.namespace' => 'Acme\Migrations', 'migrations.table_name' => 'acme_migrations', ) ); $app->boot(); $console->run();
Code coverage reports
$ bin/phpunit --coverage-html build/coverage --coverage-clover build/logs/clover.xml --log-junit build/logs/phpunit.xml