brick/geo-doctrine
March 1, 2026 ยท View on GitHub
Doctrine types & functions for brick/geo
Introduction
This library provides:
- type mappings to use
brick/geoobjects such asPolygonas Doctrine entity properties - functions to use in DQL queries, such as
Distance()orContains().
Installation
This library is installable via Composer:
composer require brick/geo-doctrine
Requirements
This library requires PHP 8.2.
Project status & release process
The current releases are numbered 0.x.y. When a non-breaking change is introduced (adding new methods, optimizing existing code, etc.), y is incremented.
When a breaking change is introduced, a new 0.x version cycle is always started.
It is therefore safe to lock your project to a given release cycle, such as 0.6.*.
If you need to upgrade to a newer release cycle, check the release history for a list of changes introduced by each further 0.x.0 version.
Package contents
Types
- GeometryCollectionType
- GeometryType
- LineStringType
- MultiLineStringType
- MultiPointType
- MultiPolygonType
- PointType
- PolygonType