2017 © Pedro Peláez
 

library silex-migration

Doctrine migrations service provider for Silex 2

image

quazardous/silex-migration

Doctrine migrations service provider for Silex 2

  • Friday, April 27, 2018
  • by quazardous
  • Repository
  • 1 Watchers
  • 0 Stars
  • 308 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Quazardous Silex Doctrine Migrations Provider

Yet another one but for Silex 2 !, (*1)

Intstallation

Add quazardous/silex-migration to your composer.json and register the service., (*2)

$app->register(new Quazardous\Silex\Provider\ConsoleServiceProvider, [
    'db.migrations.path' => '/path/to/migrations',
]);

You can customize the provider with parameters : - db.migrations.namespace - db.migrations.path - db.migrations.table_name - db.migrations.name, (*3)

See tests/console.php for a full working minimum example., (*4)

Demo

cd demo
touch demo.db
../vendor/bin/doctrine orm:generate-entities entity/
../vendor/bin/doctrine orm:generate-proxies
php ./console.php migrations:diff
php ./console.php migrations:migrate

The Versions

27/04 2018

dev-master

9999999-dev

Doctrine migrations service provider for Silex 2

  Sources   Download

MIT

The Requires

 

by Avatar quazardous

migrations silex doctrine