Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.
/ database Public archive

Great tool for working with database migrations and seeds.

License

Notifications You must be signed in to change notification settings

roquie/database

Repository files navigation

New maintained version of this package can be found at: https://github.com/spacetab-io/rdb-php (partially compatible) This version archived as is and no longer maintained.


Rdb

<?php

use Roquie\Database\Connection\Wait\Wait;
use Roquie\Database\Migration\Migrate;
use Roquie\Database\Seed\Seed;

Wait::connection($dsn, function (PDO $pdo) {
    Migrate::new($pdo)
        ->install()
        ->run();

    Seed::new($pdo)
        ->run();
});

Doc is coming soon.