PHP code example of guidofaecke / doctrine-dbal-pdo-ibmi

1. Go to this page and download the library: Download guidofaecke/doctrine-dbal-pdo-ibmi 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/ */

    

guidofaecke / doctrine-dbal-pdo-ibmi example snippets




use Doctrine\DBAL\IBMIDB2PDO\Driver\Driver as IBMIDB2PDODriver;

return [
    'doctrine' => [
        'connection'  => [
            'orm_default' => [
                'driver_class' => IBMIDB2PDODriver::class,
                'params'       => [
                    'host'     => '10.10.10.10',
                    'dbname'   => 'S1234abc',
                    'user'     => 'db_user',
                    'password' => 'password',
                    'charset'  => 'utf8',
                    'naming'   => '1',
                ],
            ],
        ],
    ],
];