2017 © Pedro Peláez
 

library laravel-db2

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

image

michaelb/laravel-db2

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

  • Wednesday, October 14, 2015
  • by michaelb
  • Repository
  • 2 Watchers
  • 0 Stars
  • 243 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 20 Forks
  • 0 Open issues
  • 6 Versions
  • 9 % Grown

The README.md

laravel-db2

This is a fork of cooperl22's laravel-db2

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

laravel-db2 is a simple DB2 service provider for Laravel. It provides DB2 Connection by extending the Illuminate Database component of the laravel framework., (*2)


Installation

Add laravel-db2 to your composer.json file:, (*3)

"require": {
    "michaelb/laravel-db2": "~2.0"
}

Use composer to install this package., (*4)

$ composer update

Registering the Package

Add the laravel-db2 Service Provider to your config in app/config/app.php:, (*5)

'providers' => [
    MichaelB\Database\DB2\DB2ServiceProvider::class
],

Configuration

There are two ways to configure laravel-db2. You can choose the most convenient way for you. You can put your DB2 credentials into app/config/database.php (option 1) file or use package config file which you can be generated through command line by artisan (option 2)., (*6)

Option 1: Configure DB2 using app/config/database.php file

Simply add this code at the end of your app/config/database.php file:, (*7)

    /*
    |--------------------------------------------------------------------------
    | DB2 Databases
    |--------------------------------------------------------------------------
    */

    'odbc' => [
        'driver'         => 'odbc',
        'host'           => '',
        'database'       => '',
        'username'       => '',
        'password'       => '',
        'charset'        => 'utf8',
        'ccsid'          => 1208,
        'prefix'         => '',
        'schema'         => '',
        'i5_libl'        => '',
        'i5_lib'         => '',
        'i5_commit'      => 0,
        'i5_naming'      => 0,
        'i5_date_fmt'    => 5,
        'i5_date_sep'    => 0,
        'i5_decimal_sep' => 0,
        'i5_time_fmt'    => 0,
        'i5_time_sep'    => 0,
        'options'  => [
            PDO::ATTR_CASE => PDO::CASE_LOWER,
            PDO::ATTR_EMULATE_PREPARES => false,
            PDO::ATTR_PERSISTENT => false
            ]
    ],

    'ibm' => [
        'driver'         => 'ibm',
        'host'           => '',
        'database'       => '',
        'username'       => '',
        'password'       => '',
        'charset'        => 'utf8',
        'ccsid'          => 1208,
        'prefix'         => '',
        'schema'         => '',
        'i5_libl'        => '',
        'i5_lib'         => '',
        'i5_commit'      => 0,
        'i5_naming'      => 0,
        'i5_date_fmt'    => 5,
        'i5_date_sep'    => 0,
        'i5_decimal_sep' => 0,
        'i5_time_fmt'    => 0,
        'i5_time_sep'    => 0,
        'options'  => [
            PDO::ATTR_CASE => PDO::CASE_LOWER,
            PDO::ATTR_EMULATE_PREPARES => false,
            PDO::ATTR_PERSISTENT => false
        ]
    ],

driver setting is either 'odbc' for ODBC connection or 'ibm' for pdo_ibm connection Then if driver is 'odbc', database must be set to ODBC connection name. if driver is 'ibm', database must be set to IBMi database name (WRKRDBDIRE)., (*8)

Option 2: Configure DB2 using package config file

Run on the command line from the root of your project:, (*9)

$ php artisan config:publish michaelb/laravel-db2

Set your laravel-db2 credentials in app/config/packages/michaelb/laravel-db2/config.php the same way as above, (*10)

Usage

Consult the Laravel framework documentation., (*11)

The Versions

14/10 2015

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Maxime Rault

database laravel pdo odbc db2

06/07 2015

dev-mbonds1219-patch-1

dev-mbonds1219-patch-1

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

  Sources   Download

MIT

The Requires

 

by Maxime Rault

database laravel pdo odbc db2

12/06 2015

2.0.2

2.0.2.0

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

  Sources   Download

MIT

The Requires

 

by Maxime Rault

database laravel pdo odbc db2

04/06 2015

2.0.1

2.0.1.0

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

  Sources   Download

MIT

The Requires

 

by Maxime Rault

database laravel pdo odbc db2

06/05 2015

2.0

2.0.0.0

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

  Sources   Download

MIT

The Requires

 

by Maxime Rault

database laravel pdo odbc db2

22/04 2015

1.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

by Maxime Rault

database laravel pdo odbc db2