PHPackages                             edgardmessias/yii2-ibm-db2 - 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. edgardmessias/yii2-ibm-db2

ActiveYii2-extension[Database &amp; ORM](/categories/database)

edgardmessias/yii2-ibm-db2
==========================

IBM DB2 Driver for Yii2 Framework.

1.4.1(6y ago)73.5k6[2 issues](https://github.com/edgardmessias/yii2-ibm-db2/issues)BSD-3-ClausePHPCI failing

Since Nov 5Pushed 6y ago2 watchersCompare

[ Source](https://github.com/edgardmessias/yii2-ibm-db2)[ Packagist](https://packagist.org/packages/edgardmessias/yii2-ibm-db2)[ RSS](/packages/edgardmessias-yii2-ibm-db2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (15)Used By (0)

IBM DB2 Extension for Yii 2 (yii2-ibm-db2)
==========================================

[](#ibm-db2-extension-for-yii-2-yii2-ibm-db2)

[![Latest Stable Version](https://camo.githubusercontent.com/f7a453fe0e26a4678eff76fd909a12a51c56dd00aa585d751ce3ee623fb61d9e/68747470733a2f2f706f7365722e707567782e6f72672f6564676172646d6573736961732f796969322d69626d2d6462322f762f737461626c65)](https://packagist.org/packages/edgardmessias/yii2-ibm-db2)[![Total Downloads](https://camo.githubusercontent.com/929a1e9ea9180e732cd33ee6457625ebccd61b3608f36e51810aa64efb3304c8/68747470733a2f2f706f7365722e707567782e6f72672f6564676172646d6573736961732f796969322d69626d2d6462322f646f776e6c6f616473)](https://packagist.org/packages/edgardmessias/yii2-ibm-db2)[![Latest Unstable Version](https://camo.githubusercontent.com/11c7e2d54df5054bd1c8cdf6def9e421c7ebcb78e604e6e1034dd8708f45bc2d/68747470733a2f2f706f7365722e707567782e6f72672f6564676172646d6573736961732f796969322d69626d2d6462322f762f756e737461626c65)](https://packagist.org/packages/edgardmessias/yii2-ibm-db2)[![License](https://camo.githubusercontent.com/f11d4155e6a1258d4462a8db4ccf7355ca381243890af2af3ea64a9d6b797a89/68747470733a2f2f706f7365722e707567782e6f72672f6564676172646d6573736961732f796969322d69626d2d6462322f6c6963656e7365)](https://packagist.org/packages/edgardmessias/yii2-ibm-db2)

This extension adds [IBM DB2](http://www-01.ibm.com/software/data/db2/) database engine extension for the [Yii framework 2.0](http://www.yiiframework.com).

This branch use the last developer version of Yii2 (dev-master)

[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](http://www.yiiframework.com/)[![Build Status](https://camo.githubusercontent.com/8243291ddc43e25da35f04d6ad82fa8cfe19b37d99f07b093f13fdcaf04609cd/68747470733a2f2f7472617669732d63692e6f72672f6564676172646d6573736961732f796969322d69626d2d6462322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/edgardmessias/yii2-ibm-db2)[![Dependency Status](https://camo.githubusercontent.com/1ca7d4c2d66e4b7bc1b24591f716793e439180554226782b073ddd95a274c193/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6564676172646d6573736961733a796969322d69626d2d6462322f6465762d6d61737465722f62616467652e706e67)](https://www.versioneye.com/php/edgardmessias:yii2-ibm-db2/dev-master)[![Reference Status](https://camo.githubusercontent.com/95b5637e5c17447bdead73d2136e696568306cf5ddba8a4e235589362516adf9/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6564676172646d6573736961733a796969322d69626d2d6462322f7265666572656e63655f62616467652e737667)](https://www.versioneye.com/php/edgardmessias:yii2-ibm-db2/references)[![Code Coverage](https://camo.githubusercontent.com/38e958da0d528a98913139f1fef6d80075e56703dc4f13e578d25d83edbf5c53/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6564676172646d6573736961732f796969322d69626d2d6462322f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/edgardmessias/yii2-ibm-db2/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2f26007c6e7f9eec3ddd1c701027f850ea0b7f32d0ebde9d45c2e1759afed0c8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6564676172646d6573736961732f796969322d69626d2d6462322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/edgardmessias/yii2-ibm-db2/?branch=master)

Requirements
------------

[](#requirements)

- IBM DB2 Client SDK installed
- PHP module pdo\_ibm or pdo\_odbc
- IBM DB2 Database Server 10.1 or greater

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist "edgardmessias/yii2-ibm-db2:*"
```

or add

```
"edgardmessias/yii2-ibm-db2": "*"
```

to the require section of your composer.json.

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

[](#configuration)

To use this extension, simply add the following code in your application configuration:

Using IBM DB2:

```
return [
    //....
    'components' => [
        'db' => [
            'class'         => 'edgardmessias\db\ibm\db2\Connection',
            'dsn'           => 'ibm:DRIVER={IBM DB2 ODBC DRIVER};DATABASE=test;HOSTNAME=127.0.0.1;PORT=50000;PROTOCOL=TCPIP',
            'username'      => 'username',
            'password'      => 'password',
            'defaultSchema' => '',
            'isISeries'     => false
        ],
    ],
];
```

Using ODBC IBM iAccess driver:

```
return [
    //....
    'components' => [
        'db' => [
            'class'         => 'edgardmessias\db\ibm\db2\Connection',
            'dsn'           => 'odbc:DRIVER={IBM i Access ODBC Driver 64-bit};SYSTEM=127.0.0.1;PROTOCOL=TCPIP',
            'username'      => 'username',
            'password'      => 'password',
            'defaultSchema' => '',
            'isISeries'     => false
        ],
    ],
];
```

If working on iSeries set isISeries parameter to true and fill defaultSchema.

Donations
---------

[](#donations)

- Donation is as per your goodwill to support my development.
- If you are interested in my future developments, i would really appreciate a small donation to support this project.

```
My Monero Wallet Address (XMR)
429VTmDsAw4aKgibxkk4PzZbxzj8txYtq5XrKHc28pXsUtMDWniL749WbwaVe4vUMveKAzAiA4j8xgUi29TpKXpm41bmrwQ
```

```
My Bitcoin Wallet Address (BTC)
38hcARGVzgYrcdYPkXxBXKTqScdixvFhZ4
```

```
My Ethereum Wallet Address (ETH)
0xdb77aa3d0e496c73a0dac816ac33ea389cf54681
```

Another Cryptocurrency:

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~110 days

Total

13

Last Release

2515d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d5db69e2d3ad5f80bfba07b32c1c9413c58712402359972167a4367bde2f49e?d=identicon)[edgardmessias](/maintainers/edgardmessias)

---

Top Contributors

[![edgardmessias](https://avatars.githubusercontent.com/u/1530997?v=4)](https://github.com/edgardmessias "edgardmessias (74 commits)")[![ellotta](https://avatars.githubusercontent.com/u/5371599?v=4)](https://github.com/ellotta "ellotta (1 commits)")[![ToRvaLDz](https://avatars.githubusercontent.com/u/1643636?v=4)](https://github.com/ToRvaLDz "ToRvaLDz (1 commits)")

---

Tags

db2yii2extensionactiverecordibmibm db2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/edgardmessias-yii2-ibm-db2/health.svg)

```
[![Health](https://phpackages.com/badges/edgardmessias-yii2-ibm-db2/health.svg)](https://phpackages.com/packages/edgardmessias-yii2-ibm-db2)
```

###  Alternatives

[nhkey/yii2-activerecord-history

Storage history of changes to ActiveRecord

46143.4k1](/packages/nhkey-yii2-activerecord-history)[dmstr/yii2-db

Database extensions

19618.8k6](/packages/dmstr-yii2-db)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
