greglamb / laravel-generic-database by greglamb

A database driver for Laravel 4 that provides support for generic PDO drivers
166
0
2
Package Data
Maintainer Username: greglamb
Maintainer Contact: email@greglamb.me (Greg Lamb)
Package Create Date: 2013-04-18
Package Last Update: 2014-06-11
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-22 03:10:02
Package Statistics
Total Downloads: 166
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

laravel-generic-database

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