PHPackages                             josueeek/doctrine-point-type - 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. josueeek/doctrine-point-type

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

josueeek/doctrine-point-type
============================

Package Point for doctrine

31.8kPHP

Since Dec 26Pushed 6y agoCompare

[ Source](https://github.com/josueeek/doctrine-point-type)[ Packagist](https://packagist.org/packages/josueeek/doctrine-point-type)[ RSS](/packages/josueeek-doctrine-point-type/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

### Versions:

[](#versions)

VersionPHP Version1.\*7.02.\*7.1 or higherHow to use
----------

[](#how-to-use)

First, composer install:

```
composer require josueeek/doctrine-point-type

```

After, add in your bootstrap:

```
use Doctrine\DBAL\Types\Type;

$em = YourEntityManager();

Type::addType('point', 'Josue\PointType');

// in case silex :)
$em->getConnection()->getDatabasePlatform()->registerDoctrineTypeMapping('point', 'point');
```

Or add it in your app/config yml files

```
doctrine:
    dbal:
        types:
            point: Josue\PointType
        default_connection: default
        connections:
            default:
                driver: pdo_mysql
                host: '%database_host%'
                port: '%database_port%'
                dbname: '%database_name%'
                user: '%database_user%'
                password: '%database_password%'
                charset: UTF8
                mapping_types:
                    point: point

```

Exclusive to symfony 4
----------------------

[](#exclusive-to-symfony-4)

In your controller, below the namespace, call the file

```
namespace App\Controller;

use Josue\Point;
use App\Entity\GeoLocation;

```

In your entity create a point type file

```
   *
   * @ORM\Column(name="GeoLocation", type="point")
   */
   private $GeoLocation;

   public function getGeoLocation()
   {
       return $this->GeoLocation;
   }
   public function setGeoLocation($GeoLocation)
   {
      $this->GeoLocation = $GeoLocation;
      return $this;
   }

```

You should now configure your file doctrine.yaml

```
    dbal:
        types:
            point: Josue\PointType
        mapping_types:
            point: point

```

### Now it's just enjoy, and good young work!!!

[](#now-its-just-enjoy-and-good-young-work)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/3f457b09f25ef75a8f62d0fa6ed7c286264d8a7d6ac99d0eaa795903f6738cf2?d=identicon)[josueeek](/maintainers/josueeek)

---

Top Contributors

[![josuejcalazans](https://avatars.githubusercontent.com/u/28680407?v=4)](https://github.com/josuejcalazans "josuejcalazans (9 commits)")

### Embed Badge

![Health badge](/badges/josueeek-doctrine-point-type/health.svg)

```
[![Health](https://phpackages.com/badges/josueeek-doctrine-point-type/health.svg)](https://phpackages.com/packages/josueeek-doctrine-point-type)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

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

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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