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

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

tolean/mssql-bundle
===================

Driver for work with MsSQL server

036PHP

Since Feb 6Pushed 12y ago1 watchersCompare

[ Source](https://github.com/tolean/MssqlBundle)[ Packagist](https://packagist.org/packages/tolean/mssql-bundle)[ RSS](/packages/tolean-mssql-bundle/feed)WikiDiscussions master Synced 4d 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

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56% of commits — single point of failure

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/d7cab6daa69a43b3c2845bc8afd6e7da73eae6521eb7ae6a238729ac12e04755?d=identicon)[tolean](/maintainers/tolean)

---

Top Contributors

[![pasinter](https://avatars.githubusercontent.com/u/188074?v=4)](https://github.com/pasinter "pasinter (14 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/tolean-mssql-bundle/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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