NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1856 most downloaded on Packagist
Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.
Latest stable
v4.10.1
Last release 29 days ago
24 Oct 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
82 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Keep Infinity and NaN in composite float fields
Infinity and NaN in composite float fields (#875) (ed4409f)NUMRANGE bound (#873) (a529e77)INTERVAL (#872) (440f9ec)TSRANGE bounds by the wall clock they are written with (#879) (83e733d)PATH or POLYGON with thousands of points (#881) (cd1d950)HSTORE value longer than 8 KB (#880) (c74370f)BYTEA, BIT VARYING, XML or enum value as itself, not as null (#874) (bf0d8ae)XML value and accept fragments on write (#884) (c24039d)REAL[] or DOUBLE PRECISION[] item in linear time (#877) (9e33813)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Accept a minimum and a maximum in RANDOM()
RANDOM() (#857) (95a8339)ARRAY_SORT() (#863) (64bb7d0)BIT_COUNT() (#869) (9c4d49d)ERROR_ON_NULL() (#859) (3018bc2)JSON() (#870) (23a2c1e)MAKE_INTERVAL() (#867) (59dff8d)PG_INPUT_IS_VALID() (#864) (886204e)RANGE_MINUS_MULTI() and MULTIRANGE_MINUS_MULTI() (#858) (6a3650b)REGEXP_SPLIT_TO_ARRAY() (#866) (c11e588)TO_HEX(), TO_BIN() and TO_OCT() (#865) (85891ea)TRIM_ARRAY() (#868) (798cf4e)XMLSERIALIZE() (#871) (04cd522)IGNORE NULLS and RESPECT NULLS after the window value functions (#856) (5daa2d8)Add PostGIS geometry validation and repair functions through ST_MakeValid and ST_IsValidReason
ST_MakeValid and ST_IsValidReason (#772) (ee07212)geometry_type and srid options to geometry[] and geography[] (#824) (ad8bda5)FILTER clause (#792) (f98c93d)MODE(), PERCENTILE_DISC(), PERCENTILE_CONT()) (#793) (8c0c8fd)ROW_NUMBER, RANK, DENSE_RANK, PERCENT_RANK, CUME_DIST, NTILE) (#799) (e6188f5)LAG, LEAD, FIRST_VALUE, LAST_VALUE, NTH_VALUE) (#800) (e0f978c)OVER (#798) (4209935)WktSpatialData parse under the same-named fromString method like every other value object (#767) (5a95db7)LCA with an array of paths (#850) (d02ccf8)ST_COLLECTIONEXTRACT with only a geometry (#846) (131da97)ST_SCALE with a geometry factor (#847) (d973e71)ST_SUBDIVIDE with only a geometry (#845) (4981c85)TO_TIMESTAMP with a Unix epoch (#848) (77da8cd)WIDTH_BUCKET with an array of thresholds (#849) (8a5542d)lquery and ltxtquery labels (#840) (bd40ec6)ORDER BY (#830) (a9753fa)DATE_EXTRACT field that is not a string literal (#844) (774c638)ND_BOUNDING_BOX_DISTANCE, whose <<#>> operator was never released in a stable PostGIS version (#813) (1be13d3)Keep the NULL elements PostgreSQL puts in an integer or float array
Add support for GEN_RANDOM_UUID()
geometry[] and geography[] arrays (#725) (1535593)GEN_RANDOM_UUID() (#679) (1602c2d)geometry_type and srid column options to PostGIS spatial types (#683) (ffa7581)numeric[], varchar[], time[] and json[] data types (#678) (168515b)cube data type (#680) (c9a981f)lquery and ltxtquery data types and the ltree match operators (#681) (2b41e8a)ulid data type via the pgx_ulid extension (#677) (c0d1456)UUIDV7 (#675) (31da3ba)jsonb[] column can hold (#706) (e9b9538)hstore back as an empty map, not null (#704) (87cde8c)bool[] column as null instead of true in PHP (#714) (1bc3e92)\z anchors in validation regexes for data types, for which PostgreSQL doesn't support a trailing newline (#682) (2c2156c)jsonb[] item as a SQL NULL element (#712) (9b7e36e)EMPTY geometries in WktSpatialData (#719) (00d0b36)inet, cidr and ltree validators (and their array counter-parts) to match PostgreSQL (#715) (0c783ee)Widen support of PostGIS functions
Add DQL support for hstore functions
enum DBAL type (#633) (5869318)bytea DBAL type and its array variation (#630) (bc4324e)citext DBAL type and its array variation (#640) (bba3af3)hstore DBAL type and its array variation (#632) (b6f7c12)timetz DBAL type and its array variation (#635) (d80419a)## 4.5.1 (2026-04-19) ### Bug Fixes * #616: Add length/dimension support to pgvector types' SQL declaration
Add support for bit and bit varying DBAL types and their array variations
bit and bit varying DBAL types and their array variations (#608) (9f8fed1)box, circle, line, lseg, path, polygon) and their array variations (#601) (5e29747)Add support for AT TIME ZONE operator as a DQL function (enabling timezone conversion of timestamp values)
GENERATE_SERIES through the introduction of GENERATE_NUMERIC_SERIES and GENERATE_TIME_SERIES (#592) (c1b8b44)AT TIME ZONE operator as a DQL function (enabling timezone conversion of timestamp values) (#567) (3ab1d69)date[], timestamp[], and timestamptz[] DBAL types (#597) (989771e)interval[] DBAL type (#591) (7fc59d0)interval DBAL type (#582) (fa71e78)ltree[] DBAL type (#595) (29c28ef)money[] DBAL type (#588) (84e5163)money DBAL type (#577) (95b27a5)range_agg and range_intersect_agg (#573) (c0ca299)tsquery[] DBAL type (#586) (f25d137)tsvector[] DBAL type (#587) (9d45e7d)xml[] DBAL type (#589) (84bfe50)xml DBAL type (#578) (5c9590c)SIMILARITY, STRICT_WORD_SIMILARITYz and WORD_SIMILARITY) (#571) (9715b70)HALFVEC and SPARSEVEC types (#584) (c7d83ae)VECTOR type and distance functions (COSINE_DISTANCE, INNER_PRODUCT, L2_DISTANCE) (#570) (43acc91)datemultirange, tsmultirange, and tstzmultirange DBAL types (#575) (fac1ff6)Add support for int4multirange, int8multirange and nummultirange data types
ST_Buffer, ST_Translate, ST_Scale, ST_Rotate, ST_Subdivide, ST_CurveToLine, ST_Distance, ST_Length, ST_Area, ST_HausdorffDistance, ST_FrechetDistance, ST_Transform) (#549) (c1a6062)int4multirange, int8multirange and nummultirange data types (#555) (8773862)macaddr8 and macaddr8[] data types (#554) (af6678e)tsvector and tsquery data types (#553) (d45bbd8)Add support for ST_GeomFromGeoJSON and ST_AsGeoJSON
fuzzystrmatch extension (#540) (c8073c6)ST_GeomFromGeoJSON and ST_AsGeoJSON (#545) (e7f4df1)Add support for AGE, DATE_PART, MAKE_DATE, MAKE_TIMESTAMP, MAKE_TIMESTAMPTZ, MAKE_TIME
AGE, DATE_PART, MAKE_DATE, MAKE_TIMESTAMP, MAKE_TIMESTAMPTZ, MAKE_TIME (#528) (5e6956a)ARRAY_FILL, ARRAY_LOWER, ARRAY_SAMPLE, ARRAY_UPPER, JSONB_BUILD_ARRAY, JSON_BUILD_ARRAY (#530) (a2091e8)CONCAT_WS, FORMAT, LEFT, REPEAT, REVERSE, RIGHT (#533) (83678f5)JSONB_EXTRACT_PATH, JSON_EXTRACT_PATH, JSONB_EXTRACT_PATH_TEXT, JSON_EXTRACT_PATH_TEXT, JSONB_TO_TSVECTOR, JSONB_TYPEOF (#535) (578e528)remove deprecations scheduled for v4.0
UUID[] data type (#511) (1c9cafb)MD5, SHA224, SHA256, SHA384, SHA512 (#507) (3e42396)ST_ConcaveHull, ST_CurveN, ST_Letters, ST_NumCurves, ST_RemoveIrrelevantPointsForView, ST_RemoveSmallParts, ST_SimplifyPolygonHull, ST_TriangulatePolygon (#505) (2992811)ST_HasZ, ST_HasM, ST_CoverageUnion, ST_LineExtend (#504) (826ffef)null values in the network array data types (#517) (7fb6dc7)Improve accidental misconfiguration through the use of constants for all DBAL types
## 3.6.2 (2025-11-25) ### Bug Fixes * #482: Always preserve strings (even if they are obviously numerical) when transforming a TEXTARRAY value into a
## 3.6.1 (2025-11-08) ### Bug Fixes * #473: Add public getter methods to Range value objects (#477) (9ba319e) * #474: Support usage of arithmetic expr
Add support for uuid_extract_timestamp and uuid_extract_version
WktSpatialData (#459) (7242665)uuid_extract_timestamp and uuid_extract_version (#466) (77a513f)## 3.5.1 (2025-09-12) ### Bug Fixes * #446: Restore OVERLAPS to its intended namespace and strengthen its test coverage
Add support for websearch_to_tsquery
GEOGRAPHY, GEOMETRY and their array variations (#421) (d97caae)LTREE type (#411) (5a6563d)LTREE data type (#440) (745b269)websearch_to_tsquery (#437) (be90545)TextArray value (#443) (bdb8df2)JsonbArray and preserve integer values as strings if they are outside PHP integer range (#442) (d213967)## 3.4.1 (2025-08-03) ### Bug Fixes * #399: Support array types for CAST
## 3.4.0 (2025-08-01) ### Features * #401: Improve JSON field extraction by adding index support
## 3.2.2 (2025-06-15) ### Bug Fixes * #351: Correct round-trip handling of special characters between PHP and PostgreSQL
## 3.2.1 (2025-05-24) ### Bug Fixes * #351: Remove invalid or non-PostgreSQL-compliant test cases; ensure edge cases for backslashes, quotes, special
Add support for arithmetic functions CEIL, FLOOR, ROUND and TRUNC
Extend support of REGEXP_LIKE(), REGEXP_MATCH() and REGEXP_REPLACE() while deprecating the legacy limited flagged variations of FlaggedRegexpLike, Fla…
ARRAY_POSITION() and ARRAY_POSITIONS() (#366) (a1dc059)DATE_ADD(), DATE_SUBTRACT() and DATE_BIN() (#345) (c3cb08d)JSONB_PATH_EXISTS(), JSONB_PATH_MATCH(), JSONB_PATH_QUERY(), JSONB_PATH_QUERY_ARRAY() and JSONB_PATH_QUERY_FIRST() (#346) (0cda902)POINT and POINT[] data types (#348) (18ec906)REGEXP_COUNT(), REGEXP_INSTR() and REGEXP_SUBSTR() and extend support for REGEXP_REPLACE() (#352) (9959476)<@> (#361) (8dbbf8c)REGEXP_LIKE(), REGEXP_MATCH() and REGEXP_REPLACE() while deprecating the legacy limited flagged variations of FlaggedRegexpLike, FlaggedRegexpMatch and FlaggedRegexpReplace (#357) (ef688dc)Avoid infinite parsing loop for GREATEST() and LEAST() by using SimpleArithmeticExpression
Restore support for unquoted string values stored in text[]
_For detailed upgrade guide read here: UPGRADE.md_
For detailed upgrade guide read here: UPGRADE.md
The library now attempts to strictly preserve the type of values when converting between PostgreSQL arrays and PHP arrays. This affects all array type handlers including TextArray, integer arrays, and boolean arrays.
What changed: Previously, numeric values could lose their type information during conversion (e.g., floats might become integers, string representations of numbers might become actual numbers). With version 3.0.0, the original data types are preserved in both directions. The change comes from PR #304.
Examples:
1 remain integers1.5 remain floats'1' remain stringstrue/false remain booleans'1.23e5' is preservedThe exception handling for JsonbArray has been refactored to be more consistent with the network types approach, providing clearer error messages and better diagnostics.
What changed: Previously, generic exceptions were thrown when JSON array conversion failed. With version 3.0.0, specific InvalidJsonbArrayItemForPHPException is used with more descriptive error messages about the exact nature of the failure. The change comes from PR #311.
real[] and double precision[] (#307) (1db35ac)inet, inet[], cidr, cidr[], macaddr, macaddr[] (#310) (ba3f9f2)any_value() (#323) (19ee3db)array_shuffle() (#324) (90a9b9e)xmlagg() (#318) (0b4db8a)NULL value in array_append(), array_replace(), array_prepend(), array_remove() (#322) (396856f)DISTINCT and ORDER BY clauses to json_agg() and jsonb_agg() (#317) (4cdc638)DISTINCT clause to array_agg() (#316) (3c46021)Add support for Lexer v1 (allowed by ORM < v2.15)
Improve BC by deprecating customiseFunction instead of renaming it straight away
Wrap up ORM v3 throwable when parsing fails in variadic functions
Add (limited) support for json_exists, json_query, json_scalar, json_serialize and json_value
json_exists, json_query, json_scalar, json_serialize and json_value (#277) (4a26400)ARRAY (#279) (7f2b05d)BaseRegexpFunction and ParserException (#269) (fed0367)BaseFunction::customiseFunction() to BaseFunction::customizeFunction() (#273) (877d929)Add limited support for json_build_object and jsonb_build_object
Fix php84 str_getcsv deprecation in DataStructure.php by @smnandre in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/249
ROW by @bzanchettin in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/247str_getcsv deprecation in DataStructure.php by @smnandre in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/249Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.7.0...v2.8.0
feat: add split_part function by @syl20b in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/236
split_part by @martin-georgiev in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/238Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.6.0...v2.7.0
Add support for string concatenation (using || operator) by @samdark in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/226
|| operator) by @samdark in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/226Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.5.0...v2.6.0
Add support for REGEXP_REPLACE() by @captain-igloo in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/203
qossmic/deptrac-shim with qossmic/deptrac by @martin-georgiev in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/202Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.4.1...v2.5.0
DBAL v4 support by @GwendolenLynch in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/193
Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.4.0...v2.4.1
Bump minimum Doctrine ORM version to v2.14 and add support for Doctrine ORM v3 & Lexer v3 by @GwendolenLynch in https://github.com/martin-georgiev/pos
Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.3.2...v2.4.0
Define doctrine/lexer dependency range correctly by @alexander-schranz in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/177
doctrine/lexer dependency range correctly by @alexander-schranz in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/177Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.3.1...v2.3.2
Update dependency phpstan/phpstan to ^1.10.56 by @renovate in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/171
Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.3.0...v2.3.1
Add STARTS_WITH function by @dmitryuk in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/162
STARTS_WITH function by @dmitryuk in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/162?, ?|, ?&, @? and #- by @martin-georgiev in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/170Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.2.0...v2.3.0
Drop support for PHP 8.0 and run CI for PHP 8.3 by @martin-georgiev in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/163
symfony/cache and qossmic/deptrac-shim dev requirements by @martin-georgiev in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/153Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.1.2...v2.2.0
Update dependency rector/rector to ^0.18.1 by @renovate in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/147
Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.1.1...v2.1.2
Address deprecated use of properties via ArrayAccess for Cast by @dmitryuk in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/140
TSMATCH usage by @priyadi in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/136ArrayAccess for Cast by @dmitryuk in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/140Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.1.0...v2.1.1
Add support for date's EXTRACT by @keithbrink in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/111
New features
EXTRACT by @keithbrink in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/111Housekeeping
CAST key in documentation by @tacman in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/132Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.0.1...v2.1.0
Address regression with support of bool values in JSONB by @martin-georgiev in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/131
Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v2.0.0...v2.0.1
Add support for CAST by @mpiot in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/116
New features
CAST by @mpiot in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/116JSONB_SET_LAX by @martin-georgiev in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/125JSONB_PRETTY by @martin-georgiev in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/126REGEXP_LIKE and REGEXP_MATCH and their flagged variations by @martin-georgiev in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/128BC changes
Housekeeping
Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v1.8.0...v2.0.0
Add support for regex operators by @jenkoian in https://github.com/martin-georgiev/postgresql-for-doctrine/pull/106
Full Changelog: https://github.com/martin-georgiev/postgresql-for-doctrine/compare/v1.7.0...v1.8.0
#105 - Add support OVERLAPS for date intervals (thanks to @gallyamow) #104 - Add support for DISTINCT and ORDER BY in STRING_AGG (kudos to @bigwhoop)
#105 - Add support OVERLAPS for date intervals (thanks to @gallyamow) #104 - Add support for DISTINCT and ORDER BY in STRING_AGG (kudos to @bigwhoop) #103 - Correct namespace used in integration guide (by @Gemorroj)
Boolean array type (thanks to @ajgarlag)
This release enables parallel support of doctrine/dbal v2 and v3
This release enables parallel support of doctrine/dbal v2 and v3
- #81 Use || in composer.json - #82 Run CI static analysis step for all tested PHP versions - #83 Use local version of php-security-checker - #84 Impr
|| in composer.json- #77 Allow support for PHP 8 (thanks to @massimilianobraglia) - #70 Update documentation with some missed functions (thanks to @Gemorroj)
#69 Handy new feature - support for UNACCENT and language argument in TO_TSQUERY and TO_TSVECTOR. Thanks to @hason.
#69 Handy new feature - support for UNACCENT and language argument in TO_TSQUERY and TO_TSVECTOR. Thanks to @hason.
#66 Allow the primitive types of integer, string and float to be stored in a Jsonb field
#66 Allow the primitive types of integer, string and float to be stored in a Jsonb field
- #63 Support for array_agg, json_agg, json_object_agg, jsonb_agg, jsonb_object_agg, string_agg. - #62 Drop support for PHP 7.1
array_agg, json_agg, json_object_agg, jsonb_agg, jsonb_object_agg, string_agg.Thanks to @Gemorroj and @strider2038 for their PRs.
Thanks to @Gemorroj and @strider2038 for their PRs.
One column per quarter.