PHPackages                             alanseiden/doctrine-dbal-ibmi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. alanseiden/doctrine-dbal-ibmi

ActiveLibrary[Database &amp; ORM](/categories/database)

alanseiden/doctrine-dbal-ibmi
=============================

Doctrine DBAL drivers for DB2 on the IBM i platform

0.0.8(4y ago)1418.2k11[6 PRs](https://github.com/alanseiden/doctrine-dbal-ibmi/pulls)MITPHPPHP ^5.6|^7.0|^7.1

Since Jan 22Pushed 1y ago7 watchersCompare

[ Source](https://github.com/alanseiden/doctrine-dbal-ibmi)[ Packagist](https://packagist.org/packages/alanseiden/doctrine-dbal-ibmi)[ RSS](/packages/alanseiden-doctrine-dbal-ibmi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (11)Used By (0)

doctrine-dbal-ibmi
==================

[](#doctrine-dbal-ibmi)

[![Lint](https://github.com/SeidenGroup/doctrine-dbal-ibmi/actions/workflows/lint.yml/badge.svg)](https://github.com/SeidenGroup/doctrine-dbal-ibmi/actions/workflows/lint.yml)[![Quality assurance](https://github.com/SeidenGroup/doctrine-dbal-ibmi/actions/workflows/qa.yml/badge.svg)](https://github.com/SeidenGroup/doctrine-dbal-ibmi/actions/workflows/qa.yml)[![Build and test](https://github.com/SeidenGroup/doctrine-dbal-ibmi/actions/workflows/test.yml/badge.svg)](https://github.com/SeidenGroup/doctrine-dbal-ibmi/actions/workflows/test.yml)

[Doctrine DBAL](https://www.doctrine-project.org/projects/doctrine-dbal/en/current/reference/introduction.html#introduction)drivers for [DB2 on the IBM i platform](https://www.ibm.com/docs/en/i/7.4?topic=overview-db2-i).

Based on the original work by [@cassvail](https://github.com/cassvail) in [doctrine/dbal#910](https://github.com/doctrine/dbal/pull/910).

Usage
-----

[](#usage)

First, install with Composer:

```
composer require alanseiden/doctrine-dbal-ibmi
```

Configuration
-------------

[](#configuration)

This package provides 2 drivers: `OdbcDriver` and `DB2Driver`.

`OdbcDriver` requires the [`pdo_odbc`](https://www.php.net/manual/en/ref.pdo-odbc.php)extension, and is the recommended driver.

`DB2Driver` requires the [`ibm_db2`](https://www.php.net/manual/en/book.ibm-db2.php) extension, and is [not recommended for new connections](https://github.com/php/pecl-database-ibm_db2#new-implementations).

These drivers can be configured using the instructions described in the [Doctrine DBAL docs](https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#getting-a-connection).

```
