PHPackages                             maegnes/zf2doctrine2sqlsrv - 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. maegnes/zf2doctrine2sqlsrv

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

maegnes/zf2doctrine2sqlsrv
==========================

ZF2 Module which integrates Sqlsrv specific types for the doctrine2 DBAL

028PHP

Since Nov 26Pushed 11y ago1 watchersCompare

[ Source](https://github.com/maegnes/ZF2Doctrine2SqlsrvTypes)[ Packagist](https://packagist.org/packages/maegnes/zf2doctrine2sqlsrv)[ RSS](/packages/maegnes-zf2doctrine2sqlsrv/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/3a8ccfee53ad344c56d59724563e72cfbf67521bc911ad2ca28f10122f479e4a/68747470733a2f2f7472617669732d63692e6f72672f6d6165676e65732f5a4632446f637472696e653253716c73727654797065732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/maegnes/ZF2Doctrine2SqlsrvTypes)

ZF2Doctrine2SqlsrvTypes
=======================

[](#zf2doctrine2sqlsrvtypes)

If you are working with Microsoft MSSQL and its "Sqlsrv"-Driver with Zend Framework2 and Doctrine2 you will have some troubles with the "datetime" and "date" types in Doctrine2. The MSSQL-Server doesn't accept the defined standard format "Y-m-D H:i:s" or "Y-m-D" in Doctrine2.

To avoid problems with the format use the **ZF2Doctrine2SqlsrvTypes** module which integrates the two new DBAL Types SqlsrvDatetime and SqlsrvDate.

After installing the module via composer just replace the types in your doctrine2 notation from "datetime" to "SqlsrvDatetime" and from "date" to "SqlsrvDate".

Installation via Composer
-------------------------

[](#installation-via-composer)

Just add the following dependency to your composer.json file and add the module "ZF2Doctrine2SqlsrvTypes" to your modules list in the application.config.php.

```
{
    "require": {
		"maegnes/zf2doctrine2sqlsrv": "dev-master"
    }
}

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://avatars.githubusercontent.com/u/5019381?v=4)[Magnus Buk](/maintainers/maegnes)[@maegnes](https://github.com/maegnes)

---

Top Contributors

[![maegnes](https://avatars.githubusercontent.com/u/5019381?v=4)](https://github.com/maegnes "maegnes (6 commits)")

### Embed Badge

![Health badge](/badges/maegnes-zf2doctrine2sqlsrv/health.svg)

```
[![Health](https://phpackages.com/badges/maegnes-zf2doctrine2sqlsrv/health.svg)](https://phpackages.com/packages/maegnes-zf2doctrine2sqlsrv)
```

###  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)
