PHPackages                             alireza/geobundle - 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. alireza/geobundle

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

alireza/geobundle
=================

Doctrine Geo extensions

04PHP

Since Jan 24Pushed 9y agoCompare

[ Source](https://github.com/alirezarahmani/GeoBundle)[ Packagist](https://packagist.org/packages/alireza/geobundle)[ RSS](/packages/alireza-geobundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

This bundle provides a simple integration for the MySQL POINT-Datatype and some distance calculations.

Please note: This bundle is at an early stage of development, use it at your own risk!

Installation
------------

[](#installation)

Please install this bundle via composer (via a custom repository) and add the following options into your config.yml:

```
doctrine:
	dbal:
        types:
            point: Digilist\GeoBundle\ORM\PointType
        mapping_types:
            point: point

    orm:
        dql:
            numeric_functions:
                DISTANCE: Digilist\GeoBundle\ORM\Distance

```

Usage
-----

[](#usage)

After installation, you can now use the new `POINT` Datatype within your entity definitions.

```
/**
 * @Column(type="point")
 */
private $coordinates;

```

Distance Calculation (you can use the DISTANCE function anywhere in the query builder or in your DQL function):

```
// Query Builder
$qb = $this->getEntityManager()->createQueryBuilder();
$qb->from('Company', 'c')
   ->where('DISTANCE(c.coordinates, :lat, :lng) < 20')
   ->setParameter('lat', $point->getLatitude())
   ->setParameter('lng', $point->getLongitude());

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/965ed40af88547018104aa7099f3a162410f7d73c40aae71dc0380f6537c2bff?d=identicon)[sanfrancisco\_me](/maintainers/sanfrancisco_me)

---

Top Contributors

[![toothman](https://avatars.githubusercontent.com/u/3628143?v=4)](https://github.com/toothman "toothman (4 commits)")[![digilist](https://avatars.githubusercontent.com/u/833667?v=4)](https://github.com/digilist "digilist (2 commits)")[![alirezarahmani](https://avatars.githubusercontent.com/u/1522417?v=4)](https://github.com/alirezarahmani "alirezarahmani (1 commits)")

### Embed Badge

![Health badge](/badges/alireza-geobundle/health.svg)

```
[![Health](https://phpackages.com/badges/alireza-geobundle/health.svg)](https://phpackages.com/packages/alireza-geobundle)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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