jsor/doctrine-postgis
Spatial and Geographic Data with PostGIS and Doctrine.
v2.4.0
1.8M downloads/mo
#4386 most downloaded on Packagist
jsor/doctrine-postgis
What this package is like to depend on
Last release 10 months ago
09 Oct 2025
Release timing varies
gaps range from 3 weeks to 3.1 years
Nearly every release is documented
notes for 17 of 17 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
17 releases · first in 2015
1 release in the last 12 months
see the full history below
Release timeline
17 releases · Aug 2015 to Oct 2025Releases
latest 17-
v2.4.009 Oct 2025Release notes
Open source →What's Changed
- Fixed POINT notation in README by @cheack in #71
- DBAL v4, Middleware, Driver, Platform, and SchemaManager implementation by @GwendolenLynch in #61
- Support for PostGIS 3.2, 3.4 & 3.6 testing by @GwendolenLynch in #67
New Contributors
- @cheack made their first contribution in #71
- @GwendolenLynch made their first contribution in #61
Full Changelog: v2.3.0...v2.4.0
-
v2.3.020 Feb 2024Release notes
Open source →- Switch to platform options from deprecated custom schema options. Thanks @sasa-b (#64).
- Better compatibility with different Doctrine ORM versions.
-
v2.2.026 Apr 2023Release notes
Open source →- Make handling create table sql simple and robust. Reuse native Platform::getCreateTableSQL() instead of copying the code from Doctrine.
- Skip create table generation if a table has no spatial indexes.
Release notes
Open source →- Make handling create table sql simple and robust. Reuse native Platform::getCreateTableSQL() instead of copying the code from Doctrine.
- Skip create table generation if a table has no spatial indexes.
-
v2.1.021 Apr 2022Release notes
Open source →- Remove persistent Connection/SchemaManager instance from event listeners.
The event listeners now always use the connection instance provided by the
event args.
Release notes
Open source →- Remove persistent Connection/SchemaManager instance from event listeners. The event listeners now always use the connection instance provided by the event args.
2.0.0 - 2021-10-07
New major release which introduces a new dependency version support matrix.
Dependency Supported Versions PHP ^8.0 PostGIS 3.0 and 3.1 PostgreSQL 11, 12 and 13 Doctrine ORM ^2.9 Doctrine DBAL ^2.13 and ^3.1 Other Changes
-
The following DQL functions have been removed, mostly because they are also no longer available in PostGIS:
ST_MakeBox3D(useST_3DMakeBoxinstead)ST_AsKMLST_Distance_Sphere(useST_DistanceSphereinstead)ST_Distance_Spheroid(useST_DistanceSpheroidinstead)ST_Length3D(useST_3DLengthinstead)ST_Length_Spheroid(useST_LengthSpheroidinstead)ST_Length2D_SpheroidST_Shift_Longitude(useST_ShiftLongitudeinstead)
-
The dummy
RasterTypehas been removed. Register a custom type mapping instead, e.g.$platform->registerDoctrineTypeMapping('raster', 'string'). -
Add parameter and return type declarations.
-
Switch from Travis CI to GitHub Actions for running CI pipeline.
-
Add Docker setup to allow running tests against the different supported PostgreSQL / PostGIS versions.
- Remove persistent Connection/SchemaManager instance from event listeners.
-
v2.0.007 Oct 2021Release notes
Open source →New major release which introduces a new dependency version support matrix.
Dependency Supported Versions PHP ^8.0 PostGIS 3.0 and 3.1 PostgreSQL 11, 12 and 13 Doctrine ORM ^2.9 Doctrine DBAL ^2.13 and ^3.1 Other Changes
-
The following DQL functions have been removed, mostly because they are also no
longer available in PostGIS:ST_MakeBox3D(useST_3DMakeBoxinstead)ST_AsKMLST_Distance_Sphere(useST_DistanceSphereinstead)ST_Distance_Spheroid(useST_DistanceSpheroidinstead)ST_Length3D(useST_3DLengthinstead)ST_Length_Spheroid(useST_LengthSpheroidinstead)ST_Length2D_SpheroidST_Shift_Longitude(useST_ShiftLongitudeinstead)
-
The dummy
RasterTypehas been removed. Register a custom type mapping
instead, e.g.$platform->registerDoctrineTypeMapping('raster', 'string'). -
Add parameter and return type declarations.
-
Switch from Travis CI to GitHub Actions for running CI pipeline.
-
Add Docker setup to allow running tests against the different supported
PostgreSQL / PostGIS versions.
-
-
v1.8.003 Sep 2021Release notes
Open source →This release now allows installation on PHP 8.
Note: While it is possible to install this library on PHP 8, it is not officially support right now. Use with care and at your own risk.
Release notes
Open source →-
This release now allows installation on PHP 8.
Note: While it is possible to install this library on PHP 8, it is not officially support right now. Use with care and at your own risk.
-
-
v1.7.001 Aug 2018Release notes
Open source →- This release drops support for the EOL versions of PHP 5.3, 5.4 and 5.5.
Release notes
Open source →- This release drops support for the EOL versions of PHP 5.3, 5.4 and 5.5.
-
v1.6.013 Jul 2018Release notes
Open source →- Fix: Remove setting unsupported
primaryoption when creating theDoctrine\DBAL\Schema\Columnobject. This prevents triggering a deprecation error for DBAL >= 2.7. Thanks @simonwelsh (#38). - Feature: Run test against PHP 7.2. Thanks @carusogabriel (#35).
Release notes
Open source →- Fix: Remove setting unsupported
primaryoption when creating theDoctrine\DBAL\Schema\Columnobject. This prevents triggering a deprecation error for DBAL >= 2.7. Thanks @simonwelsh (#38).- Feature: Run test against PHP 7.2. Thanks @carusogabriel (#35).
- Fix: Remove setting unsupported
-
v1.5.013 Nov 2017Release notes
Open source →- Feature: New functions
ST_DistanceSphere,ST_DistanceSpheroidandST_LengthSpheroid. Those functions should be used in PostGIS 2.2 and onwards instead of the deprecated functionsST_Distance_Sphere,ST_Distance_SpheroidandST_Length_Spheroid. Thanks to @JunkMyFunk for the report (#32). - Feature: Tests now use namespaced classes from PHPUnit. Thanks @carusogabriel (#33).
Release notes
Open source →- Feature: New functions
ST_DistanceSphere,ST_DistanceSpheroidandST_LengthSpheroid. Those functions should be used in PostGIS 2.2 and onwards instead of the deprecated functionsST_Distance_Sphere,ST_Distance_SpheroidandST_Length_Spheroid. Thanks to @JunkMyFunk for the report (#32).- Feature: Tests now use namespaced classes from PHPUnit. Thanks @carusogabriel (#33).
- Feature: New functions
-
v1.4.112 Jul 2017Release notes
Open source →- Fix: Ensure SRID values from metadata are casted to int to prevent unecessary schema diffs when using XML mappings. Thanks to @HenningCash for the report (#30).
Release notes
Open source →- Fix: Ensure SRID values from metadata are casted to int to prevent unecessary schema diffs when using XML mappings. Thanks to @HenningCash for the report (#30).
-
v1.4.011 Jan 2017Release notes
Open source →- Feature: New function
ST_AddPoint. Thanks @ltsstar (#26).- Feature: New function
Geography.
- Feature: New function
- Feature: New function
-
v1.3.016 Dec 2016 -
v1.2.015 Dec 2016 -
v1.1.228 Nov 2016Release notes
Open source →- Fix: Fix handling of table and column names using reserved words. Thanks to @maximilian-walter for reporting (#19).
-
v1.1.111 Oct 2016Release notes
Open source →- Fix: The event subscribers now allow multiple calls to
postConnectfor the same connection instance. This is done by MasterSlaveConnection for example when switching master/slave connections. Thanks to @gcavana for reporting, patch courtesy of @NoiseByNorthwest in #17.
- Fix: The event subscribers now allow multiple calls to
-
v1.1.008 Apr 2016Release notes
Open source →- Feature: New raster DBAL type. Note: This type is not suited to be used in entity mappings. It just prevents "Unknown database type..." exceptions thrown during database inspections by the schema tool.
-
v1.0.011 Aug 2015