phpmysqlmigration
Automate migration of raw MySQL files., (*1)
Install
composer require jens/phpmysqlmigration, (*2)
Run migrations
$res = \Phpmysqlmigration\Phpmysqlmigration::start(__DIR__.'/database_migrations/', array('host' => 'localhost', 'username' => 'root', 'password' => '', 'database' => 'db'));
Mark everything as up-to-date
If everything is migrated, but not marked as such, you can use the reset-function to mark every files as migrated., (*3)
$res = \Phpmysqlmigration\Phpmysqlmigration::reset(__DIR__.'/database_migrations/', array('host' => 'localhost', 'username' => 'root', 'password' => '', 'database' => 'db'));