PHPackages                             bcremer/doctrine-mysql-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. bcremer/doctrine-mysql-spatial

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

bcremer/doctrine-mysql-spatial
==============================

Doctrine support for MySQL spatial types and functions

2.0.1(5y ago)124.0k↓35.7%MITPHP

Since Mar 17Pushed 5y agoCompare

[ Source](https://github.com/bcremer/doctrine-mysql-spatial)[ Packagist](https://packagist.org/packages/bcremer/doctrine-mysql-spatial)[ RSS](/packages/bcremer-doctrine-mysql-spatial/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (11)Used By (0)

Doctrine MySQL Spatial Types
============================

[](#doctrine-mysql-spatial-types)

[![Latest Version on Packagist](https://camo.githubusercontent.com/44e6933250d74d8ee337d51af2d463f9b08448994dacebe98253214eee2afcef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626372656d65722f646f637472696e652d6d7973716c2d7370617469616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bcremer/doctrine-mysql-spatial)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://github.com/bcremer/doctrine-mysql-spatial/workflows/Continuous%20Integration/badge.svg)](https://github.com/bcremer/doctrine-mysql-spatial/actions)

Doctrine support for spatial types and functions for MySQL.

Install
-------

[](#install)

Via Composer

```
$ bcremer/doctrine-mysql-spatial
```

Supported Versions
------------------

[](#supported-versions)

```
  matrix:
    php-version:
      - "7.4"
      - "8.0"
    mysql-version:
      - "5.7"
      - "8.0"

```

Project origins
---------------

[](#project-origins)

This project was forked from [creof/doctrine2-spatial](https://github.com/creof/doctrine2-spatial) by Derek J. Lambert. The origin project seems to be non-active since 2017.

I stripped down this fork to just support recent PHP and MySQL versions. I do not plan to re-introduce support for other Platforms than (Oracle/Percona) MySQL.

- Removed support for PostgreSQL
- Removed support for PHP Versions &lt; 7.4
- Removed support for MySQL Versions &lt; 5.7
- Removed travis-ci build
- Introduced github actions
- Added support for PHP 8.0
- Added support for MySQL 8
- Changed project namespace from `CrEOF\Spatial` to `Bcremer\Spatial`
- Changed composer package name to `bcremer/doctrine-mysql-spatial`

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 69.9% 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 ~319 days

Recently: every ~478 days

Total

9

Last Release

1888d ago

Major Versions

0.1 → 1.0.02015-11-09

1.2.0 → 2.0.02020-12-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/0545dfa5917845b12373dfa688658be444a3e611aae930cc37840cf8f4acd01d?d=identicon)[bcremer](/maintainers/bcremer)

---

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 (71 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)")[![bcremer](https://avatars.githubusercontent.com/u/55820?v=4)](https://github.com/bcremer "bcremer (8 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)")[![ktzouno](https://avatars.githubusercontent.com/u/1590019?v=4)](https://github.com/ktzouno "ktzouno (1 commits)")[![masayuki14](https://avatars.githubusercontent.com/u/2756405?v=4)](https://github.com/masayuki14 "masayuki14 (1 commits)")[![0xC0D3D00D](https://avatars.githubusercontent.com/u/2244181?v=4)](https://github.com/0xC0D3D00D "0xC0D3D00D (1 commits)")[![david-pacheco](https://avatars.githubusercontent.com/u/7070581?v=4)](https://github.com/david-pacheco "david-pacheco (1 commits)")[![PowerKiKi](https://avatars.githubusercontent.com/u/72603?v=4)](https://github.com/PowerKiKi "PowerKiKi (1 commits)")[![damianociarla](https://avatars.githubusercontent.com/u/2201712?v=4)](https://github.com/damianociarla "damianociarla (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)")[![Charles-Emmanuel-DEZANDEE](https://avatars.githubusercontent.com/u/24267113?v=4)](https://github.com/Charles-Emmanuel-DEZANDEE "Charles-Emmanuel-DEZANDEE (1 commits)")

---

Tags

doctrinedoctrine-extensiondoctrine2geospatialgisdatabaseormmysqldbalgeometrygeographyopengisgisspatial

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bcremer-doctrine-mysql-spatial/health.svg)

```
[![Health](https://phpackages.com/badges/bcremer-doctrine-mysql-spatial/health.svg)](https://phpackages.com/packages/bcremer-doctrine-mysql-spatial)
```

###  Alternatives

[creof/doctrine2-spatial

Doctrine2 multi-platform support for spatial types and functions

2763.3M11](/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).

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

Spatial and Geographic Data with PostGIS and Doctrine.

2191.6M1](/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.

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

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

58723.9M36](/packages/scienta-doctrine-json-functions)[cycle/database

DBAL, schema introspection, migration and pagination

64690.9k31](/packages/cycle-database)

PHPackages © 2026

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