PHPackages                             ajthinking/laravel-easy-postgis - 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. ajthinking/laravel-easy-postgis

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

ajthinking/laravel-easy-postgis
===============================

3.0(9y ago)038CC0PHP

Since Jan 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ajthinking/laravel-easy-postgis)[ Packagist](https://packagist.org/packages/ajthinking/laravel-easy-postgis)[ RSS](/packages/ajthinking-laravel-easy-postgis/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (10)Used By (0)

Laravel Easy PostGIS
====================

[](#laravel-easy-postgis)

When you want geometry data types in your Laravel project. This package keeps the geometry support strictly on the database side, making it easier to use together with other third party packages affecting your Models. On the laravel side only WKT-strings are used. For a more powerful and integrated approach, see

Install
-------

[](#install)

```
composer require ajthinking/laravel-easy-postgis

```

Add the service provider to providers array in config/app.php:

```
Ajthinking\LaravelEasyPostGIS\LaravelEasyPostGISServiceProvider::class,

```

Publish the configs to config/postgis.php:

```
php artisan vendor:publish

```

How it works
------------

[](#how-it-works)

- In your migration, create a string field as $NAME$\_$GEOMETRY$\_wkt. Example: "park\_polygon\_wkt"
- php artisan migrate
- php artisan postgis

This will create a mirrored geometry column for instance "park\_polygon\_geom". It will also add trigger functions to your table. Now, whenever you Insert or Update on your table, the database will make sure any \_geom column is in sync with the corresponding \_wkt-column.

Configuration
-------------

[](#configuration)

In config/postgis.php you can set:

- column type indicators (wkt/geometry)
- geometry type indicators (POLYGON, LINESTRING ...)
- database prefix for triggers and functions
- srid (default is 4326)
- database schema (default is public)

Versions
--------

[](#versions)

This package was developed with/for

- Laravel 5.3
- PostgreSQL 9.5

License
-------

[](#license)

CC0 - use however you want.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~0 days

Total

9

Last Release

3415d ago

Major Versions

1.9 → 2.02017-01-03

2.1 → 3.02017-01-04

### Community

Maintainers

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

---

Top Contributors

[![ajthinking](https://avatars.githubusercontent.com/u/3457668?v=4)](https://github.com/ajthinking "ajthinking (20 commits)")

### Embed Badge

![Health badge](/badges/ajthinking-laravel-easy-postgis/health.svg)

```
[![Health](https://phpackages.com/badges/ajthinking-laravel-easy-postgis/health.svg)](https://phpackages.com/packages/ajthinking-laravel-easy-postgis)
```

###  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)
