定制 rui_mashita/laravel-dblib-odbc-sqlserver 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rui_mashita/laravel-dblib-odbc-sqlserver

Composer 安装命令:

composer require rui_mashita/laravel-dblib-odbc-sqlserver

包简介

PDO DBLIB or PDO ODBC SQL Server Driver for Laravel 4

README 文档

README

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

统计信息

  • 总下载量: 1.76k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-06