New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

rui_mashita/laravel-dblib-odbc-sqlserver

PDO DBLIB or PDO ODBC SQL Server Driver for Laravel 4
1,773 10
Install
composer require rui_mashita/laravel-dblib-odbc-sqlserver:dev-master
PHP:>=5.3.0
License:MIT
Last Updated:Feb 6, 2015
Links: GitHub  ·  Packagist
Maintainer: rui_mashita

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:

{
    "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.

'DblibOdbcSqlServer\Database\ServiceProvider',

Configuration

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

    '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',
        ),
    ),

Related Packages

wajatimur/odbc-driver

ODBC Driver for Laravel

1,565 8
dbt/odbc-driver

ODBC Driver for Laravel 12+

201,734 29
tobymaxham/laravel-odbc-driver

An ODBC Driver for SQL Server within Laravel

6,727 9
rexlu/laraveloracleodbc

Adds an Oracle ODBC(PDO) driver package to Laravel 4.2

3,157 6
rtroncoso/odbc-driver

Laravel 5.0 ODBC Driver

26 0