PHPackages                             mabuzagu/pdo-dblib-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. mabuzagu/pdo-dblib-module

ActiveLibrary[Database &amp; ORM](/categories/database)

mabuzagu/pdo-dblib-module
=========================

MSSQL dbib module for zf

633.8k5[2 issues](https://github.com/mabuzagu/PDODblibModule/issues)PHP

Since Oct 13Pushed 9y ago2 watchersCompare

[ Source](https://github.com/mabuzagu/PDODblibModule)[ Packagist](https://packagist.org/packages/mabuzagu/pdo-dblib-module)[ RSS](/packages/mabuzagu-pdo-dblib-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PDODblibModule
==============

[](#pdodblibmodule)

PDO DBlib Module for Zend

Introduction
============

[](#introduction)

Doctrine 2 does support any method of connecting to SQL Server on a Linux box. Here's a simple driver that supports PDO DBlib. Many tests fail, but most are related to shortcomings of the PDODBlib driver. There is a patch in the PHP repo to add transaction and lastInsertId support, but this package has some minor work arounds.

Dependecies
===========

[](#dependecies)

- pdo\_dblib
- FreeTDS
- [DoctrineModule](https://github.com/doctrine/DoctrineModule)
- [DoctrineORMModule](https://github.com/doctrine/DoctrineORMModule)

For Symphony Bundle: \[PDODblibBundle\] () (latest master)

FreeTDS configuration
=====================

[](#freetds-configuration)

DBLib requires FreeTDS. We can't go into detail about configuring FreeTDS, but the connection configured should look something like following:

```
[mssql_freetds]
    host = 172.30.252.25
    port = 1433
    tds version = 8.0
    client charset = UTF-8
    text size = 20971520

```

Installing
==========

[](#installing)

#### With composer

[](#with-composer)

1. Add this in your composer.json:

    ```
    "require": {
        "mabuzagu/pdo-dblib-module": "dev-master",
    }
    ```
2. Now tell composer to download PDODblibModule by running the command:

    ```
    $ php composer.phar update
    ```

#### Post Installation

[](#post-installation)

1. Enabling it in your `application.config.php`file.

    ```
