Doctrine2 dbal php script

register();
$classLoader = new ClassLoader(‘Doctrine\\DBAL’, ROOT_PATH.’/vendor/doctrine-dbal/lib’);
$classLoader->register();

$connectionParams = array(
‘dbname’ => ‘testdb’,
‘user’ => ‘postgres’,
‘password’ => ‘1111’,
‘host’ => ‘localhost’,
‘driver’ => ‘pdo_pgsql’,
);
$conn = DriverManager::getConnection($connectionParams, new Configuration() );