PHPackages                             jtgrimes/laravel-db2-bridge - 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. jtgrimes/laravel-db2-bridge

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

jtgrimes/laravel-db2-bridge
===========================

Brings Laravel's database tools and Eloquent models to db2

1111[5 issues](https://github.com/jtgrimes/laravel-db2-bridge/issues)PHP

Since Sep 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jtgrimes/laravel-db2-bridge)[ Packagist](https://packagist.org/packages/jtgrimes/laravel-db2-bridge)[ RSS](/packages/jtgrimes-laravel-db2-bridge/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-db2-bridge
==================

[](#laravel-db2-bridge)

Use Laravel's database and Eloquent tools on DB2 with no fuss

:WARNING: Heads Up :WARNING:
----------------------------

[](#warning-heads-up-warning)

This is a very very preliminary release of this package and should be used at your own risk. The code here does everything I need it to, but does not yet **fully** implement Laravel's database or Eloquent components. Suggestions are gratefully accepted. Pull Requests are even more gratefully accepted.

License
=======

[](#license)

LaravelDB2Bridge is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT), the same license Laravel uses.

Requirements
============

[](#requirements)

LaravelDB2Bridge wraps PHP's native db2\_\* database functions to be called from Laravel. You must have the [`ibm_db2` extension](https://secure.php.net/manual/en/book.ibm-db2.php) installed to use this package.

Installation
============

[](#installation)

Via Composer

```
$ composer require jtgrimes\laravel-db2-bridge

```

Once Composer has installed or updated your packages, you need to register LaravelDB2Bridge with Laravel itself. Open up `/config/app.php` and find the providers key towards the bottom and add:

```
'JTGrimes\LaravelDB2\DB2ServiceProvider'

```

Configuration
=============

[](#configuration)

When you use LaravelDB2Bridge, DB2 becomes just another database driver in Laravel. To configure your database, open `/config/database.php` and add the following to the `connections` array:

```
     'db2' => [
         'username'   => env('DB_USERNAME'),
         'password' => env('DB_PASSWORD'),
         'dbname'   => '*LOCAL',
         'options' => [
             'i5_libl' => 'QTEMP OTHERLIB ANOTHEROTHERLIB',
             'i5_naming' => 'DB2_I5_NAMING_OFF',
             ...
          ],
     ],

```

Obviously, you can tweak those settings to suit your needs. All of the [connection options](https://secure.php.net/manual/en/function.db2-connect.php) are available and can be set in the `options` array.

Usage
=====

[](#usage)

Use Laravel's [database](https://laravel.com/docs/5.3/database) and [Eloquent](https://laravel.com/docs/5.3/eloquent)packages as you usually would.

Credits
=======

[](#credits)

[Taylor Otwell](https://twitter.com/taylorotwell) wrote [Laravel](http://laravel.com/) which is awesome, but he shares no blame for this package. [Alan Seiden](https://twitter.com/alanseiden) deserves a little blame for encouraging me to release this package. If you're running PHP on the IBM iSeries, he's *the* guy to hit up for help.

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c319ec5d12ff7f655d70ebd4ad5d0ac9d364bfb12524834290f4d1c0953751b0?d=identicon)[jtgrimes](/maintainers/jtgrimes)

---

Top Contributors

[![jtgrimes](https://avatars.githubusercontent.com/u/3291952?v=4)](https://github.com/jtgrimes "jtgrimes (6 commits)")

### Embed Badge

![Health badge](/badges/jtgrimes-laravel-db2-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/jtgrimes-laravel-db2-bridge/health.svg)](https://phpackages.com/packages/jtgrimes-laravel-db2-bridge)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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