PHPackages                             dabsquared/mssql-bundle - 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. dabsquared/mssql-bundle

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

dabsquared/mssql-bundle
=======================

Driver for work with MsSQL server

0800PHP

Since May 8Pushed 13y agoCompare

[ Source](https://github.com/DABSquared/MssqlBundle)[ Packagist](https://packagist.org/packages/dabsquared/mssql-bundle)[ RSS](/packages/dabsquared-mssql-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Install
-------

[](#install)

Add the **isoft/mssql-bundle** into **composer.json**

```
"require": {
    ....
    "isoft/mssql-bundle": "master-dev"
},

```

Usage
-----

[](#usage)

Add to section doctrine - dbal in **config.yml** option **driver\_class**

```
doctrine:
    dbal:
        driver:         %database_driver%
        driver_class:   \Realestate\MssqlBundle\Driver\PDODblib\Driver

```

make sure your %database\_driver% is set to pdo\_dblib

---

In app/AppKernel.php registerBundles(), add the following line:

```
$bundles = array(
    ...
    new Realestate\MssqlBundle\RealestateMssqlBundle(),
    ...
);

```

---

In Doctrine\\DBAL\\DriverManager's $\_driverMap property, add this driver to the list:

```
'pdo_dblib' => 'Realestate\DBAL\Driver\PDODblib\Driver',

```

---

This driver requires version 8.0 (from ) as default 4.2 version does not have UTF support

In /etc/freetds/freetds.conf, change tds version = 4.2 to tds version = 8.0

---

can't use nvarchar!!

---

In SQL 2000 SP4 or newer, SQL 2005 or SQL 2008, if you do a query that returns NTEXT type data, you may encounter the following exception: \_mssql.MssqlDatabaseError: SQL Server message 4004, severity 16, state 1, line 1: Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier.

It means that SQL Server is unable to send Unicode data to FTREETDS, because of shortcomings of FTREETDS. You have to CAST or CONVERT the data to equivalent NVARCHAR data type, which does not exhibit this behaviour.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fdf19ed71b3ac0d2b567011714f901882551a3e8cfb7aba2e85af128ce60b66a?d=identicon)[bass\_rock](/maintainers/bass_rock)

---

Top Contributors

[![pasinter](https://avatars.githubusercontent.com/u/188074?v=4)](https://github.com/pasinter "pasinter (14 commits)")[![bassrock](https://avatars.githubusercontent.com/u/1010384?v=4)](https://github.com/bassrock "bassrock (11 commits)")[![c0rrupt](https://avatars.githubusercontent.com/u/1436683?v=4)](https://github.com/c0rrupt "c0rrupt (6 commits)")[![warezthebeef](https://avatars.githubusercontent.com/u/521746?v=4)](https://github.com/warezthebeef "warezthebeef (4 commits)")[![woodspire](https://avatars.githubusercontent.com/u/1275609?v=4)](https://github.com/woodspire "woodspire (1 commits)")

### Embed Badge

![Health badge](/badges/dabsquared-mssql-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dabsquared-mssql-bundle/health.svg)](https://phpackages.com/packages/dabsquared-mssql-bundle)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
