lamb/laravel-generic-database

A database driver for Laravel 4 that provides support for generic PDO drivers

Installs: 138

Dependents: 0

Stars: 1

Watchers: 1

Open Issues: 1

Language: PHP

v0.1.1 2013-04-19 01:00 UTC

README

A database driver for Laravel 4 that provides support for generic PDO drivers

install

composer.json

Add a requirement for the package

{
    "require": {
        "lamb/laravel-generic-database": "dev-master"
    }
}

config/app.php

Add it to the list of providers

'providers' => array(
  'Lamb\LaravelGenericDatabase\GenericDatabaseServiceProvider'
)

config/database.php

Add a connection using the generic database driver

  'odbc' => array(
    'driver'   => 'generic',
    'dsn'      => 'odbc:DRIVER={IBM DB2 ODBC DRIVER};HOSTNAME=localhost;PORT=50000;DATABASE=SAMPLE;PROTOCOL=TCPIP;UID=db2inst1;PWD=ibmdb2;'
  ),

license

Released under the MIT license