jtreminio/aura-sql-service-provider

A config ServiceProvider for Aura.Sql

dev-master 2013-07-23 03:15 UTC

This package is not auto-updated.

Last update: 2024-04-22 13:39:21 UTC


README

If you want to use Aura.Sql with Silex, use this provider.

It was made to be a drop-in replacement for Doctrine DBAL so simply follow the instructions there to get it working:

$app->register(new jtreminio\Silex\AuraSqlServiceProvider, array(
    'db.options' => array (
        'driver'   => 'pdo_mysql',
        'host'     => 'localhost',
        'dbname'   => 'my_database',
        'user'     => 'my_username',
        'password' => 'my_password',
        'charset'  => 'utf8',
    ),
));

Have fun!