PHPackages                             naprstek/doctrine-functions - 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. naprstek/doctrine-functions

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

naprstek/doctrine-functions
===========================

A set of User Defined Functions to Doctrine 2, basically for MSSQL.

1.2.1(7y ago)135.0k↓39.6%1BSD-3-ClausePHPPHP &gt;=7.0

Since Dec 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/naprstek/doctrine-functions)[ Packagist](https://packagist.org/packages/naprstek/doctrine-functions)[ RSS](/packages/naprstek-doctrine-functions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (7)Used By (0)

DoctrineFunctions
=================

[](#doctrinefunctions)

A set of extensions to Doctrine 2 that add support for additional query functions available in MSSQL.

This library is inspired by DoctrineExpressions, see here: \[\]. It contains a lot of functions for other DB.

The namespace were preserved as they are in DoctrineExtensions, so those two library can be used together.

DBFunctionsMSSQL`CAST, FORMAT, ISNULL, GETDATE, MONTH, YEAR, DATEPART`Installation
------------

[](#installation)

To install this library, run the command below and you will get the latest version:

```
composer require naprstek/doctrine-functions
```

Integration to application
--------------------------

[](#integration-to-application)

in module.config.php add to doctrine section and name function you need. Functions are not added automaticaly (to decrease dependencies and speed up):

```
    'doctrine' => [
        'connection' => [
            'orm_default' => [
                ...
            ],
        ],
        'configuration' => [
            'orm_default' => [ //User Defined Functions
                'string_functions' => [
                    'format' => 'DoctrineFunctions\Query\Mssql\Format',
                    ...
                ],
                'datetime_functions' => [], //when they exist
                'numeric_functions' => [], //when they exist
            ],
        ],
    ],
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity62

Established project with proven stability

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.

###  Release Activity

Cadence

Every ~62 days

Recently: every ~77 days

Total

6

Last Release

2776d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c09dcb562d3c0e99c678cf5cfed225ce78747424d497f7337e568862a9fbb014?d=identicon)[naprstek](/maintainers/naprstek)

---

Tags

databaseormdoctrinemssql

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/naprstek-doctrine-functions/health.svg)

```
[![Health](https://phpackages.com/badges/naprstek-doctrine-functions/health.svg)](https://phpackages.com/packages/naprstek-doctrine-functions)
```

###  Alternatives

[laravel-doctrine/migrations

Doctrine Migrations for Laravel

782.8M16](/packages/laravel-doctrine-migrations)[cycle/database

DBAL, schema introspection, migration and pagination

64690.9k31](/packages/cycle-database)[williarin/wordpress-interop

Interoperability library to work with WordPress database in third party apps

6610.9k2](/packages/williarin-wordpress-interop)[mediagone/doctrine-specifications

Doctrine implementation of repository Specifications pattern

353.8k3](/packages/mediagone-doctrine-specifications)

PHPackages © 2026

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