2017 © Pedro Peláez
 

library laravel-dblib-odbc-sqlserver

PDO DBLIB or PDO ODBC SQL Server Driver for Laravel 4

image

rui_mashita/laravel-dblib-odbc-sqlserver

PDO DBLIB or PDO ODBC SQL Server Driver for Laravel 4

  • Friday, February 6, 2015
  • by rui_mashita
  • Repository
  • 2 Watchers
  • 10 Stars
  • 867 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PDO DBLIB and PDO ODBC SQL Server Driver for Laravel 4.

Requirements

  • PHP 5.3+
  • Laravel 4.2.*

Installation

Add rui_mashita/laravel-dblib-odbc-sqlserver as a requirement to composer.json:, (*1)

{
    "require": {
        "rui_mashita/laravel-dblib-odbc-sqlserver": "dev-master"
    }
}

service provider registration in you app.php file under app\config path from Laravel project root folder., (*2)

'DblibOdbcSqlServer\Database\ServiceProvider',

Configuration

Finally be sure to add the odbc driver with connection information to the config/database.php file like so:, (*3)

    'connections' => array(

        // .. Existing config here ..

        // ODBC config example
        'odbc' => array(
            'driver' => 'odbc',
            'dsn' => 'Driver={ODBC Driver};',
            'username' => 'foo',
            'password' => 'bar',
            'database' => '',
        ),

        // DBLIB config example
        'dblib' => array(
            'driver' => 'dblib',
            'host' => '172.16.0.223',
            'port' => '1433',
            'username' => 'sa',
            'password' => 'password',
            'database' => 'testtest',
        ),
    ),

The Versions

06/02 2015

dev-master

9999999-dev

PDO DBLIB or PDO ODBC SQL Server Driver for Laravel 4

  Sources   Download

MIT

The Requires

 

by Takuya Wakisaka

laravel odbc