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 1mo ago

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 14% 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://www.gravatar.com/avatar/6403eb40c8c4fe81a02303f5895fafabb79eeae92e3d42005c3e89832f76b587?d=identicon)[maegnes](/maintainers/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

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