PHP Doctrine Connection et première requête

Download page: http://www.doctrine-project.org/projects/orm/download

use Doctrine\Common\ClassLoader;
require(dirname(__FILE__).'/Doctrine/Common/ClassLoader.php');
$classLoader = new ClassLoader('Doctrine', dirname(__FILE__).'/');
$classLoader->register();
$config = new \Doctrine\DBAL\Configuration();
$connectionParams = array(
    'dbname' => 'test',
    'user' => 'root',
    'password' => '',
    'host' => 'localhost',
    'driver' => 'pdo_mysql'
);
$conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams);
if($conn==null) die('error');
$obj=$conn->fetchAll('SELECT * FROM matable LIMIT 10;');
print_r($obj);

Plus d’info : http://www.doctrine-project.org/docs/orm/2.0/en/