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

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

isoft/mssql-bundle
==================

Driver for work with MsSQL server

20138.4k57[4 issues](https://github.com/intellectsoft-uk/MssqlBundle/issues)[3 PRs](https://github.com/intellectsoft-uk/MssqlBundle/pulls)1PHP

Since May 18Pushed 11y ago16 watchersCompare

[ Source](https://github.com/intellectsoft-uk/MssqlBundle)[ Packagist](https://packagist.org/packages/isoft/mssql-bundle)[ RSS](/packages/isoft-mssql-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (1)

**WARNING**: This fork is abandoned :(

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_class:   \Realestate\MssqlBundle\Driver\PDODblib\Driver
        host: %database_host%
        user: %database_user%
        password: %database_password%
        # options:
        #    ansi_nulls: on
        #    ansi_warnings: on

```

The %database\_driver% must not be set, neither the %charset% parameter, as for stackoverflow.com/questions/8492941/doctrine-2-how-to-add-custom-dbal-driver#answer-8731924

The connection options (ansi\_nulls and ansi\_warnings) may be configured for MSSQL to ON|OFF

---

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

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

```

---

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

An example of freetds.conf (/etc/freetds/freetds.conf) is:

```
[mssql_server]
    host = xxx.xxx.xxx.xxx
    port = 1433
    tds version = 8.0
    client charset = UTF-8
    text size = 20971520

```

---

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

33

—

LowBetter than 72% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community27

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

---

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 (10 commits)")[![warezthebeef](https://avatars.githubusercontent.com/u/521746?v=4)](https://github.com/warezthebeef "warezthebeef (4 commits)")[![thePanz](https://avatars.githubusercontent.com/u/226021?v=4)](https://github.com/thePanz "thePanz (3 commits)")[![fesor](https://avatars.githubusercontent.com/u/172247?v=4)](https://github.com/fesor "fesor (1 commits)")[![liverbool](https://avatars.githubusercontent.com/u/206804?v=4)](https://github.com/liverbool "liverbool (1 commits)")[![woodspire](https://avatars.githubusercontent.com/u/1275609?v=4)](https://github.com/woodspire "woodspire (1 commits)")[![r0ssIV](https://avatars.githubusercontent.com/u/1242369?v=4)](https://github.com/r0ssIV "r0ssIV (1 commits)")[![mikemeier](https://avatars.githubusercontent.com/u/776406?v=4)](https://github.com/mikemeier "mikemeier (1 commits)")

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

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

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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