nkt/silex-pdo-provider

Silex provider for PDO

v1.0 2014-04-20 22:59 UTC

This package is auto-updated.

Last update: 2024-12-04 13:23:35 UTC


README

Build Status

Silex provider for PDO

Usage

$app->register(new \Silex\Provider\PDOServiceProvider, array(
  'pdo.dsn'        => 'mysql:host=localhost;dbname=foobar', // sqlite::memory: by default
  'pdo.username'   => 'nkt', // null by default
  'pdo.password'   => 'hello world', // null by default
  'pdo.attributes' => array(), // empty array by default
  'pdo.class_name' => 'MyCustomPDOClass' // PDO by default
));

License

MIT