guidofaecke/doctrine-dbal-pdo-ibmi

Doctrine DBAL PDO Driver for IBM i DB2 running local or in a docker container

4.2.2 2024-11-27 17:19 UTC

This package is auto-updated.

Last update: 2024-11-27 17:21:44 UTC


README

Doctrine DBAL PDO implementation against DB2 on your IBM i platform.

Usage

It can be used :

  • On your IBM i
  • On your local machine
  • Within a Docker container

Requirements

Installation

composer require guidofaecke/doctrine-dbal-pdo-ibmi

Configuration example

<?php

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',
                ],
            ],
        ],
    ],
];