roquie/database

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

Great tool for working with database migrations and seeds.

Maintainers

👁 Roquie

Package info

github.com/roquie/database

pkg:composer/roquie/database

Statistics

Installs: 404

Dependents: 2

Suggesters: 1

Stars: 0

Open Issues: 0

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

Requires

Suggests

  • ext-pdo: For usage with SQL databases.
  • monolog/monolog: For usage when the app starts (if u have a native server, like Swoole).

Provides

None

Conflicts

None

Replaces

None

MIT ff19943ca2d1063a267e6adc85e2c3f6ec2b221e

  • roquie <roquie0.woop@gmail.com>

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.