In the past it was a standalone library for applying db migrations using PgI. Now it is a connection adapter for Pg Migration Directories.
- PHP 7.1 or higher
- PgI library
- Pg Migration Directories library
use IKTO\PgI;
use IKTO\PgiMigrationDirectories\Adapter\PgiConnectionAdapter;
// Connecting to the database.
$dbh = PgI::connect('host=127.0.0.1 port=5432 dbname=pgi_test', 'postgres', 'postgres');
$connection_adapter = new PgiConnectionAdapter($dbh);
// ... and the pass connection adapter to managed db object