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

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

fcarbah/lumen-db2-ext
=====================

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

v1.0.4(6y ago)012MITPHPPHP &gt;=7.0

Since Oct 22Pushed 6y agoCompare

[ Source](https://github.com/fcarbah/lumen-db2-extension)[ Packagist](https://packagist.org/packages/fcarbah/lumen-db2-ext)[ RSS](/packages/fcarbah-lumen-db2-ext/feed)WikiDiscussions master Synced today

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

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

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

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

[](#lumen-db2)

### Installation

[](#installation)

Install lumen-db2 via composer:

```
composer require fcarbah/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(); //
