lamb / laravel-generic-database
A database driver for Laravel 4 that provides support for generic PDO drivers
v0.1.1
2013-04-19 01:00 UTC
Requires
- php: >=5.3.0
- illuminate/support: 4.0.x
This package is not auto-updated.
Last update: 2025-01-13 13:34:36 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