PHPackages                             avkluchko/postgres-doctrine-extensions - 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. avkluchko/postgres-doctrine-extensions

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

avkluchko/postgres-doctrine-extensions
======================================

Doctrine extensions for working with PostgreSQL database

v1.0.0(6y ago)1339MITPHPPHP ^7.1.3

Since Oct 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/avkluchko/postgres-doctrine-extensions)[ Packagist](https://packagist.org/packages/avkluchko/postgres-doctrine-extensions)[ RSS](/packages/avkluchko-postgres-doctrine-extensions/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Postgres Doctrine Extensions
============================

[](#postgres-doctrine-extensions)

[![Build Status](https://camo.githubusercontent.com/09d7a931a8172be003ded23c878d4d374e1a4bc72f62a0c641e61a4ae2912560/68747470733a2f2f7472617669732d63692e6f72672f61766b6c7563686b6f2f706f7374677265732d646f637472696e652d657874656e73696f6e732e737667)](https://travis-ci.org/avkluchko/postgres-doctrine-extensions)[![Total Downloads](https://camo.githubusercontent.com/50916bfa0985ea3680634aa7a046547084e0bd36b51b6f33e6078fc4c63bb243/68747470733a2f2f706f7365722e707567782e6f72672f61766b6c7563686b6f2f706f7374677265732d646f637472696e652d657874656e73696f6e732f646f776e6c6f616473)](//packagist.org/packages/avkluchko/postgres-doctrine-extensions)[![Latest Stable Version](https://camo.githubusercontent.com/0dc97576d5906326332df7304989bd3b261c56a533f4db9b746c9da9c6ff10f1/68747470733a2f2f706f7365722e707567782e6f72672f61766b6c7563686b6f2f706f7374677265732d646f637472696e652d657874656e73696f6e732f76)](//packagist.org/packages/avkluchko/postgres-doctrine-extensions)[![License](https://camo.githubusercontent.com/a763cb75fd3f7b08b0419eaf1919adb89ed065d3129329853f42c159dad74e60/68747470733a2f2f706f7365722e707567782e6f72672f61766b6c7563686b6f2f706f7374677265732d646f637472696e652d657874656e73696f6e732f6c6963656e7365)](//packagist.org/packages/avkluchko/postgres-doctrine-extensions)

Doctrine extensions for working with PostgreSQL database

Requirements
------------

[](#requirements)

Installation
------------

[](#installation)

```
composer require avkluchko/postgres-doctrine-extensions
```

Add the necessary extensions in the doctrine.yaml:

```
doctrine:
    orm:
        dql:
            string_functions:
                cast: AVKluchko\PostgresDoctrineExtensions\DQL\Cast
                date_part: AVKluchko\PostgresDoctrineExtensions\DQL\DatePart
                make_date: AVKluchko\PostgresDoctrineExtensions\DQL\MakeDate
                to_char: AVKluchko\PostgresDoctrineExtensions\DQL\ToChar
```

Usage
-----

[](#usage)

```
// src/Filters/SomeFilter.php
public class SomeFilter
{
    // ...
    protected function createCondition(string $year, string $field, string $operator, string $parameterName): string
    {
        return sprintf(
            'make_date(%s, cast(date_part(\'month\', %s) as integer), cast(date_part(\'day\', %s) as integer)) %s :%s',
            $year,
            $field,
            $field,
            $operator,
            $parameterName
        );
    }
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2461d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5292154?v=4)[Aleks Key](/maintainers/avkluchko)[@avkluchko](https://github.com/avkluchko)

---

Top Contributors

[![avkluchko](https://avatars.githubusercontent.com/u/5292154?v=4)](https://github.com/avkluchko "avkluchko (12 commits)")

### Embed Badge

![Health badge](/badges/avkluchko-postgres-doctrine-extensions/health.svg)

```
[![Health](https://phpackages.com/badges/avkluchko-postgres-doctrine-extensions/health.svg)](https://phpackages.com/packages/avkluchko-postgres-doctrine-extensions)
```

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