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

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

thewhatis/doctrine2-spatial
===========================

Doctrine2 multi-platform support for spatial types and functions

1.2.1(1y ago)02MITPHP

Since Apr 4Pushed 1y agoCompare

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

READMEChangelogDependencies (7)Versions (2)Used By (0)

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

25

—

LowBetter than 35% of packages

Maintenance40

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70.5% 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

Unknown

Total

1

Last Release

502d ago

### Community

Maintainers

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

---

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)")[![dragosprotung](https://avatars.githubusercontent.com/u/1081073?v=4)](https://github.com/dragosprotung "dragosprotung (9 commits)")[![ddproxy](https://avatars.githubusercontent.com/u/105473?v=4)](https://github.com/ddproxy "ddproxy (9 commits)")[![postHawk](https://avatars.githubusercontent.com/u/18420226?v=4)](https://github.com/postHawk "postHawk (5 commits)")[![derekcdw](https://avatars.githubusercontent.com/u/169203971?v=4)](https://github.com/derekcdw "derekcdw (5 commits)")[![hanego](https://avatars.githubusercontent.com/u/11038692?v=4)](https://github.com/hanego "hanego (4 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)")[![TheWhatis](https://avatars.githubusercontent.com/u/63002654?v=4)](https://github.com/TheWhatis "TheWhatis (1 commits)")[![ktzouno](https://avatars.githubusercontent.com/u/1590019?v=4)](https://github.com/ktzouno "ktzouno (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)")[![0x6368](https://avatars.githubusercontent.com/u/7045209?v=4)](https://github.com/0x6368 "0x6368 (1 commits)")[![masayuki14](https://avatars.githubusercontent.com/u/2756405?v=4)](https://github.com/masayuki14 "masayuki14 (1 commits)")[![pamuche](https://avatars.githubusercontent.com/u/986531?v=4)](https://github.com/pamuche "pamuche (1 commits)")

---

Tags

databaseormmysqlpostgresqldbalgeometrygeographyopengispostgisgisspatial

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[creof/doctrine2-spatial

Doctrine2 multi-platform support for spatial types and functions

2733.4M12](/packages/creof-doctrine2-spatial)[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)
