1. Go to this page and download the library: Download marekskopal/orm-migrations library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
marekskopal / orm-migrations example snippets
//Create DB connection
$database = new MysqlDatabase('localhost', 'root', 'password', 'database');
//Create schema
$schema = new SchemaBuilder()
->addEntityPath(__DIR__ . '/Entity')
->build();
//Create Migrator
$pathWithMigrations = __DIR__ . '/migrations/';
$migrator = new Migrator($pathWithMigrations, $database);