PHPackages                             ajgl/doctrine-dbal-pgsql-types - 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. ajgl/doctrine-dbal-pgsql-types

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

ajgl/doctrine-dbal-pgsql-types
==============================

Custom PostgreSQL types

0.4.2(11mo ago)545.3k↑250%4MITPHPPHP ^8.1CI passing

Since May 6Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/ajgarlag/AjglDoctrineDbalPgsqlTypes)[ Packagist](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)[ Docs](https://github.com/ajgarlag/AjglDoctrineDbalPgsqlTypes)[ RSS](/packages/ajgl-doctrine-dbal-pgsql-types/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (10)Used By (0)

AjglDoctrineDbalPgsqlTypes
==========================

[](#ajgldoctrinedbalpgsqltypes)

This component allows you to manage some native [PostgreSQL](http://www.postgresql.org)data types with the Doctrine [DBAL](http://www.doctrine-project.org/projects/dbal.html) component.

Usage
-----

[](#usage)

To use the new types you shoud register them using the [Custom Mapping Types](https://doctrine-dbal.readthedocs.org/en/latest/reference/types.html#custom-mapping-types) feature.

```
\Doctrine\DBAL\Types\Type::addType('integer[]', 'Ajgl\Doctrine\DBAL\Types\IntegerArrayType');
/* @var $connection \Doctrine\DBAL\Connection */
$connection->getDatabasePlatform()->registerDoctrineTypeMapping('_int4', 'integer[]');
```

### Usage with Symfony Standard Edition

[](#usage-with-symfony-standard-edition)

If you want to use this with a Symfony Standard Edition application, you can [register the new types](http://symfony.com/doc/current/cookbook/doctrine/dbal.html#registering-custom-mapping-types) in the `config.yml` file.

```
doctrine:
    dbal:
        types:
            integer[]: Ajgl\Doctrine\DBAL\Types\IntegerArrayType
        mapping_types:
            _int4: integer[]
```

License
-------

[](#license)

This component is under the MIT license. See the complete license in the LICENSE file.

Badges
------

[](#badges)

- **GitHub Actions**: [![Build Status](https://github.com/ajgarlag/AjglDoctrineDbalPgsqlTypes/workflows/test/badge.svg?branch=master)](https://github.com/ajgarlag/AjglDoctrineDbalPgsqlTypes/actions)
- **Poser Latest Stable Version:** [![Latest Stable Version](https://camo.githubusercontent.com/4fd9214faf4fa684828ac5026c679a0bcf5e019c2a226cde0bd3c590b8370d62/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f646f637472696e652d6462616c2d706773716c2d74797065732f762f737461626c652e706e67)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
- **Poser Latest Unstable Version** [![Latest Unstable Version](https://camo.githubusercontent.com/ab0b297e5c7341d228f6a7e7df201f7604aba2f89d56f15ab5a93f0a90676566/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f646f637472696e652d6462616c2d706773716c2d74797065732f762f756e737461626c652e706e67)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
- **Poser Total Downloads** [![Total Downloads](https://camo.githubusercontent.com/90b5335a6f801896e871f532a1a1da12d32c29979046a69c8845f2d3d97e6a5c/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f646f637472696e652d6462616c2d706773716c2d74797065732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
- **Poser Monthly Downloads** [![Montly Downloads](https://camo.githubusercontent.com/0542771c676ca38fc90e53af0f9c7bc65e864d751ef5c37149e93251710d3cca/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f646f637472696e652d6462616c2d706773716c2d74797065732f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
- **Poser Daily Downloads** [![Daily Downloads](https://camo.githubusercontent.com/d88ce9e5746e9d63e1dc7f7a3eb1be62cb31ef497832af8fd1a103364bebe30e/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f646f637472696e652d6462616c2d706773716c2d74797065732f642f6461696c792e706e67)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
- **Poser License** [![License](https://camo.githubusercontent.com/4847f9a2504cfc8c9f63d012868998b585f7e32eb6ec2108f0b4c647d4e17955/68747470733a2f2f706f7365722e707567782e6f72672f616a676c2f6373762f6c6963656e73652e706e67)](https://packagist.org/packages/ajgl/doctrine-dbal-pgsql-types)
- **SensionLabs Insight Quality** [![SensioLabsInsight](https://camo.githubusercontent.com/127335f5e3abf66244b06af1bb43d196e3c5411b0b4aa05ab91a93e801f51856/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34333934613763622d343036362d343332392d383066652d6237346564353731633431312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/4394a7cb-4066-4329-80fe-b74ed571c411)

About
-----

[](#about)

AjglDoctrineDbalPgsqlTypes is an [ajgarlag](http://aj.garcialagar.es) initiative.

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/ajgarlag/AjglDoctrineDbalPgsqlTypes/issues).

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance58

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 96.3% 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

Every ~505 days

Recently: every ~433 days

Total

9

Last Release

351d ago

PHP version history (3 changes)0.1.0PHP &gt;=5.3.2

0.4.0PHP &gt;=7.4

0.4.1PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![ajgarlag](https://avatars.githubusercontent.com/u/388184?v=4)](https://github.com/ajgarlag "ajgarlag (52 commits)")[![fmasa](https://avatars.githubusercontent.com/u/5658260?v=4)](https://github.com/fmasa "fmasa (1 commits)")[![gtoboso](https://avatars.githubusercontent.com/u/1107237?v=4)](https://github.com/gtoboso "gtoboso (1 commits)")

---

Tags

databasedbalpsqlposgresql

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ajgl-doctrine-dbal-pgsql-types/health.svg)

```
[![Health](https://phpackages.com/badges/ajgl-doctrine-dbal-pgsql-types/health.svg)](https://phpackages.com/packages/ajgl-doctrine-dbal-pgsql-types)
```

###  Alternatives

[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k241.3M3.3k](/packages/doctrine-doctrine-bundle)[doctrine/migrations

PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a powerful tool.

4.8k204.8M440](/packages/doctrine-migrations)[vlucas/spot2

Simple DataMapper built on top of Doctrine DBAL

605392.8k7](/packages/vlucas-spot2)[jsor/doctrine-postgis

Spatial and Geographic Data with PostGIS and Doctrine.

2191.6M1](/packages/jsor-doctrine-postgis)[nettrine/dbal

Doctrine DBAL for Nette Framework

322.6M19](/packages/nettrine-dbal)[marktopper/doctrine-dbal-timestamp-type

Add the timestamp type for Doctrine/DBAL

49808.2k1](/packages/marktopper-doctrine-dbal-timestamp-type)

PHPackages © 2026

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