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.7kPHP

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 1mo ago

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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

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

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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