PHPackages                             michaelb/lumen-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. michaelb/lumen-db2

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

michaelb/lumen-db2
==================

lumen-db2 is a simple DB2 service provider for Lumen. It provides DB2 Connection by extending the Illuminate Database component of the laravel framework.

v1.0.1(10y ago)14.0k2[2 issues](https://github.com/michaelbonds/lumen-db2/issues)MITPHPPHP &gt;=5.4.0

Since Oct 22Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (5)Used By (0)

This is an adaptation of [cooperl22's laravel-db2](https://www.github.com/cooperl22/laravel-db2) to work with [Lumen](http://lumen.laravel.com/)
------------------------------------------------------------------------------------------------------------------------------------------------

[](#this-is-an-adaptation-of-cooperl22s-laravel-db2-to-work-with-lumen)

Lumen-DB2
=========

[](#lumen-db2)

### Installation

[](#installation)

Install lumen-db2 via composer:

```
composer require michaelb/lumen-db2
```

Uncomment call to Eloquent and add the DB2ServiceProvideer to `bootstrap/app.php`:

```
// ...

/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| Here we will load the environment and create the application instance
| that serves as the central piece of this framework. We'll use this
| application as an "IoC" container and router for this framework.
|
*/

$app = new Laravel\Lumen\Application(
    realpath(__DIR__.'/../')
);

// $app->withFacades();

$app->withEloquent(); //
