PackageTrack
Sign in Get early access

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 2025
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 17
  1. v2.4.0 09 Oct 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.3.0...v2.4.0

    Open source →
  2. v2.3.0 20 Feb 2024
    Release notes
    • Switch to platform options from deprecated custom schema options. Thanks @sasa-b (#64).
    • Better compatibility with different Doctrine ORM versions.
    Open source →
    Release notes
    • Switch to platform options from deprecated custom schema options. Thanks @sasa-b (#64).
    • Better compatibility with different Doctrine ORM versions.
    Open source →
  3. v2.2.0 26 Apr 2023
    Release notes
    • 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.
    Open source →
    Release notes
    • 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.
    Open source →
  4. v2.1.0 21 Apr 2022
    Release notes
    • Remove persistent Connection/SchemaManager instance from event listeners.
      The event listeners now always use the connection instance provided by the
      event args.
    Open source →
    Release notes
    • 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 (use ST_3DMakeBox instead)
      • ST_AsKML
      • ST_Distance_Sphere (use ST_DistanceSphere instead)
      • ST_Distance_Spheroid (use ST_DistanceSpheroid instead)
      • ST_Length3D (use ST_3DLength instead)
      • ST_Length_Spheroid (use ST_LengthSpheroid instead)
      • ST_Length2D_Spheroid
      • ST_Shift_Longitude (use ST_ShiftLongitude instead)
    • The dummy RasterType has 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.

    Open source →
  5. v2.0.0 07 Oct 2021
    Release notes

    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 (use ST_3DMakeBox instead)
      • ST_AsKML
      • ST_Distance_Sphere (use ST_DistanceSphere instead)
      • ST_Distance_Spheroid (use ST_DistanceSpheroid instead)
      • ST_Length3D (use ST_3DLength instead)
      • ST_Length_Spheroid (use ST_LengthSpheroid instead)
      • ST_Length2D_Spheroid
      • ST_Shift_Longitude (use ST_ShiftLongitude instead)
    • The dummy RasterType has 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.

    Open source →
  6. v1.8.0 03 Sep 2021
    Release notes

    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.

    Open source →
    Release notes
    • 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.

    Open source →
  7. v1.7.0 01 Aug 2018
    Release notes
    • This release drops support for the EOL versions of PHP 5.3, 5.4 and 5.5.
    Open source →
    Release notes
    • This release drops support for the EOL versions of PHP 5.3, 5.4 and 5.5.
    Open source →
  8. v1.6.0 13 Jul 2018
    Release notes
    • Fix: Remove setting unsupported primary option when creating the Doctrine\DBAL\Schema\Column object. This prevents triggering a deprecation error for DBAL >= 2.7. Thanks @simonwelsh (#38).
    • Feature: Run test against PHP 7.2. Thanks @carusogabriel (#35).
    Open source →
    Release notes
    • Fix: Remove setting unsupported primary option when creating the Doctrine\DBAL\Schema\Column object. This prevents triggering a deprecation error for DBAL >= 2.7. Thanks @simonwelsh (#38).
      • Feature: Run test against PHP 7.2. Thanks @carusogabriel (#35).
    Open source →
  9. v1.5.0 13 Nov 2017
    Release notes
    • Feature: New functions ST_DistanceSphere, ST_DistanceSpheroid and ST_LengthSpheroid. Those functions should be used in PostGIS 2.2 and onwards instead of the deprecated functions ST_Distance_Sphere, ST_Distance_Spheroid and ST_Length_Spheroid. Thanks to @JunkMyFunk for the report (#32).
    • Feature: Tests now use namespaced classes from PHPUnit. Thanks @carusogabriel (#33).
    Open source →
    Release notes
    • Feature: New functions ST_DistanceSphere, ST_DistanceSpheroid and ST_LengthSpheroid. Those functions should be used in PostGIS 2.2 and onwards instead of the deprecated functions ST_Distance_Sphere, ST_Distance_Spheroid and ST_Length_Spheroid. Thanks to @JunkMyFunk for the report (#32).
      • Feature: Tests now use namespaced classes from PHPUnit. Thanks @carusogabriel (#33).
    Open source →
  10. v1.4.1 12 Jul 2017
    Release notes
    • 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).
    Open source →
    Release notes
    • 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).
    Open source →
  11. v1.4.0 11 Jan 2017
    Release notes
    • Feature: New function ST_AddPoint. Thanks @ltsstar (#26).
      • Feature: New function Geography.
    Open source →
  12. v1.3.0 16 Dec 2016
    Release notes
    • Feature: New function Geometry. Thanks @dragosprotung (#22).
    Open source →
  13. v1.2.0 15 Dec 2016
    Release notes
    • Feature: New function ST_SnapToGrid. Thanks @dragosprotung (#21).
    Open source →
  14. v1.1.2 28 Nov 2016
    Release notes
    • Fix: Fix handling of table and column names using reserved words. Thanks to @maximilian-walter for reporting (#19).
    Open source →
  15. v1.1.1 11 Oct 2016
    Release notes
    • Fix: The event subscribers now allow multiple calls to postConnect for 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.
    Open source →
  16. v1.1.0 08 Apr 2016
    Release notes
    • 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.
    Open source →
  17. v1.0.0 11 Aug 2015
    Release notes
    • First stable release.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive