roquie/database

This package is abandoned and no longer maintained. No replacement package was suggested.

Great tool for working with database migrations and seeds.

Installs: 404

Dependents: 2

Suggesters: 1

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/roquie/database

dev-master 2020-09-03 09:55 UTC

This package is auto-updated.

Last update: 2020-10-03 10:15:27 UTC


README

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.