Skip to main content

Installation

Requirements​

PHP 8.5 or later within the PHP 8 series is required, together with the pdo extension and a PDO driver for the database you migrate: pdo_mysql, pdo_pgsql, pdo_sqlite, or pdo_sqlsrv.

Composer installs these alongside the package:

PackageVersionUsed for
dirthara/database^0.2Connections, queries on the migration history, and the migration lock.
dirthara/schema^0.3The schema changes migrations make and the migration history table.
league/flysystem^3.0Reading migration files and writing new ones, from any storage.
psr/clock^1.0The time that indexes new migrations and stamps applied ones.

Package installation​

Install the package with Composer:

composer require dirthara/migration

Continue with setting up the migrator.

For development, follow the Docker and Composer setup in the repository's README. Development tooling includes PHPUnit, Mago, and Xdebug.