There is no license information available for the latest version (dev-master) of this package.

Doctrine 2 DBAL Module for Zend Framework 2

dev-master 2016-02-04 13:04 UTC

This package is not auto-updated.

Last update: 2020-04-03 17:29:28 UTC


DoctrineDBALModule integrates Doctrine 2 DBAL with Zend Framework 2 quickly and easily.


Installation of this module uses composer. For composer documentation, please refer to

php composer.phar require bfolliot/doctrine-dbal-module

Then add BFolliot\\DoctrineDBALModule to your config/application.config.php.

Installation without composer is not officially supported and requires you to manually install all dependencies that are listed in composer.json

Connection settings

Connection parameters can be defined in the application configuration:

return array(
    'doctrine' => array(
        'connection' => array(
            // default connection name
            'dbal_default' => array(
                'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
                'params' => array(
                    'host'     => 'localhost',
                    'port'     => '3306',
                    'user'     => 'username',
                    'password' => 'password',
                    'dbname'   => 'database',