PHPackages                             creof/doctrine2-spatial - 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. creof/doctrine2-spatial

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

creof/doctrine2-spatial
=======================

Doctrine2 multi-platform support for spatial types and functions

1.2.0(9y ago)2733.4M↓36%180[40 issues](https://github.com/creof/doctrine2-spatial/issues)[12 PRs](https://github.com/creof/doctrine2-spatial/pulls)11MITPHPCI failing

Since Mar 17Pushed 1mo ago18 watchersCompare

[ Source](https://github.com/creof/doctrine2-spatial)[ Packagist](https://packagist.org/packages/creof/doctrine2-spatial)[ RSS](/packages/creof-doctrine2-spatial/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (7)Versions (9)Used By (11)

Doctrine2-Spatial
=================

[](#doctrine2-spatial)

[![Build Status](https://camo.githubusercontent.com/37437e7bc4d42e6fe5fd750ff16882c7a4b97182f8f19ce58c5baadd0c1764f3/68747470733a2f2f7472617669732d63692e6f72672f6372656f662f646f637472696e65322d7370617469616c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/creof/doctrine2-spatial)[![Code Climate](https://camo.githubusercontent.com/aea9209b15f096a02dd5c62187cdf16b02bf16976128e14ac67937c007dab0e8/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6372656f662f646f637472696e65322d7370617469616c2f6261646765732f6770612e737667)](https://codeclimate.com/github/creof/doctrine2-spatial)[![Coverage Status](https://camo.githubusercontent.com/a84b83b5b007c226bceb7099ce49d453c236d5557ba6304a23d1ce57c667a0be/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6372656f662f646f637472696e65322d7370617469616c2f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/creof/doctrine2-spatial?branch=master)[![Downloads](https://camo.githubusercontent.com/c067f2abb8e190b40df8f2c7b8df0815a57ce6da97705ea6262cb28161c6012f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6372656f662f646f637472696e65322d7370617469616c2e737667)](https://packagist.org/packages/creof/doctrine2-spatial)[![Gitter](https://camo.githubusercontent.com/df9d0c892139a505a554ad3feff70ec53a20705cfc256a23ab2826c5b7237b4a/68747470733a2f2f6261646765732e6769747465722e696d2f67697474657248512f6769747465722e737667)](https://gitter.im/creof/doctrine2-spatial)

Doctrine2 multi-platform support for spatial types and functions. Currently MySQL and PostgreSQL with PostGIS are supported. Could potentially add support for other platforms if an interest is expressed.

Documentation can be found at [here](./doc/index.md)

composer.json
-------------

[](#composerjson)

```
{
    "require": {
    	...
        "creof/doctrine2-spatial": "~1"
```

You will also have to change the version requirement of doctrine to at least 2.3:

```
        "doctrine/orm": ">=2.3",
```

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance57

Moderate activity, may be stable

Popularity62

Solid adoption and visibility

Community43

Growing community involvement

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 70.2% 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 ~202 days

Recently: every ~153 days

Total

7

Last Release

3322d ago

Major Versions

0.1 → 1.0.02015-11-09

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/1187338?v=4)[Derek J. Lambert](/maintainers/djlambert)[@djlambert](https://github.com/djlambert)

![](https://avatars.githubusercontent.com/u/794449?v=4)[Samuel Denis-D'Ortun](/maintainers/sadortun)[@sadortun](https://github.com/sadortun)

---

Top Contributors

[![djlambert](https://avatars.githubusercontent.com/u/1187338?v=4)](https://github.com/djlambert "djlambert (351 commits)")[![sadortun](https://avatars.githubusercontent.com/u/794449?v=4)](https://github.com/sadortun "sadortun (72 commits)")[![muka](https://avatars.githubusercontent.com/u/1021269?v=4)](https://github.com/muka "muka (20 commits)")[![tvogt](https://avatars.githubusercontent.com/u/2864852?v=4)](https://github.com/tvogt "tvogt (11 commits)")[![ddproxy](https://avatars.githubusercontent.com/u/105473?v=4)](https://github.com/ddproxy "ddproxy (9 commits)")[![dragosprotung](https://avatars.githubusercontent.com/u/1081073?v=4)](https://github.com/dragosprotung "dragosprotung (9 commits)")[![derekcdw](https://avatars.githubusercontent.com/u/169203971?v=4)](https://github.com/derekcdw "derekcdw (5 commits)")[![postHawk](https://avatars.githubusercontent.com/u/18420226?v=4)](https://github.com/postHawk "postHawk (5 commits)")[![hanego](https://avatars.githubusercontent.com/u/11038692?v=4)](https://github.com/hanego "hanego (4 commits)")[![shakaran](https://avatars.githubusercontent.com/u/14254?v=4)](https://github.com/shakaran "shakaran (1 commits)")[![smartgammadev](https://avatars.githubusercontent.com/u/16098610?v=4)](https://github.com/smartgammadev "smartgammadev (1 commits)")[![teohhanhui](https://avatars.githubusercontent.com/u/548843?v=4)](https://github.com/teohhanhui "teohhanhui (1 commits)")[![tgabi333](https://avatars.githubusercontent.com/u/187022?v=4)](https://github.com/tgabi333 "tgabi333 (1 commits)")[![0x6368](https://avatars.githubusercontent.com/u/7045209?v=4)](https://github.com/0x6368 "0x6368 (1 commits)")[![yesayi98](https://avatars.githubusercontent.com/u/63794677?v=4)](https://github.com/yesayi98 "yesayi98 (1 commits)")[![0xC0D3D00D](https://avatars.githubusercontent.com/u/2244181?v=4)](https://github.com/0xC0D3D00D "0xC0D3D00D (1 commits)")[![Charles-Emmanuel-DEZANDEE](https://avatars.githubusercontent.com/u/24267113?v=4)](https://github.com/Charles-Emmanuel-DEZANDEE "Charles-Emmanuel-DEZANDEE (1 commits)")[![damianociarla](https://avatars.githubusercontent.com/u/2201712?v=4)](https://github.com/damianociarla "damianociarla (1 commits)")[![david-pacheco](https://avatars.githubusercontent.com/u/7070581?v=4)](https://github.com/david-pacheco "david-pacheco (1 commits)")[![ktzouno](https://avatars.githubusercontent.com/u/1590019?v=4)](https://github.com/ktzouno "ktzouno (1 commits)")

---

Tags

databaseormmysqlpostgresqldbalgeometrygeographyopengispostgisgisspatial

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/creof-doctrine2-spatial/health.svg)

```
[![Health](https://phpackages.com/badges/creof-doctrine2-spatial/health.svg)](https://phpackages.com/packages/creof-doctrine2-spatial)
```

###  Alternatives

[longitude-one/doctrine-spatial

Doctrine multi-platform support for spatial types and functions, compliant with Doctrine 2.19, 3.1, and dev ones (3.2 and 4.0).

911.8M1](/packages/longitude-one-doctrine-spatial)[jsor/doctrine-postgis

Spatial and Geographic Data with PostGIS and Doctrine.

2211.8M1](/packages/jsor-doctrine-postgis)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4566.0M4](/packages/martin-georgiev-postgresql-for-doctrine)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58926.6M60](/packages/scienta-doctrine-json-functions)[tommyknocker/pdo-database-class

Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. Zero external dependencies.

856.1k](/packages/tommyknocker-pdo-database-class)

PHPackages © 2026

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