PHP code example of kokspflanze / pdo-dblib-module

1. Go to this page and download the library: Download kokspflanze/pdo-dblib-module library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kokspflanze / pdo-dblib-module example snippets


    
    return array(
        'modules' => array(
            // ...
            'DoctrineModule',
            'DoctrineORMModule',
			'PDODblibModule',
        ),
        // ...
    );
    



return array(
		'doctrine' => array(
				'connection' => array(
						'orm_default' => array(
								'driverClass' => 'PDODblibModule\Doctrine\DBAL\Driver\PDODblib\Driver',
								'params' => array(
										'host'     => '<host>',
										'port'     => '<port>',
										'user'     => '<user>',	
										'password' => '<password>',
										'dbname'   => '<dbname>',
								)
						)
				)
		),
);

final class DriverManager
{
    private static $_driverMap = array(
		/* ... snip ... */
        'pdo_dblib' => 'Doctrine\DBAL\Driver\PDODblib\Driver',
    );
}
bash
    $ php composer.phar update