nkt / silex-pdo-provider
Silex provider for PDO
v1.0
2014-04-20 22:59 UTC
Requires
- ext-pdo: *
- silex/silex: *
This package is auto-updated.
Last update: 2024-11-04 13:10:52 UTC
README
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