PHPackages                             digitalcloud/laravel-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. [Framework](/categories/framework)
4. /
5. digitalcloud/laravel-postgis

ActiveLibrary[Framework](/categories/framework)

digitalcloud/laravel-postgis
============================

v1.0.6(6y ago)121.9k8[5 PRs](https://github.com/DigitalCloud/laravel-postgis/pulls)MITPHPPHP &gt;=7.1.3

Since Oct 7Pushed 2y ago2 watchersCompare

[ Source](https://github.com/DigitalCloud/laravel-postgis)[ Packagist](https://packagist.org/packages/digitalcloud/laravel-postgis)[ RSS](/packages/digitalcloud-laravel-postgis/feed)WikiDiscussions master Synced today

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

Laravel PostGIS
===============

[](#laravel-postgis)

This package implemented for calculate or check the distance between point and other database points.

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

[](#installation)

[PHP](https://php.net) &gt;=7.1.3 and [Laravel](http://laravel.com) ^5.6 are required.

the package used [Laravel postgis extension](https://github.com/njbarrett/laravel-postgis) to deal with postgres database points in laravel, so if need more details or how to enable postgis extension in php see previous link.

To get the latest version of Laravel PostGIS, simply require the project using [Composer](https://getcomposer.org):

```
composer require digitalcloud/laravel-postgis
```

Usage
-----

[](#usage)

1 . First of all use `Postgis` trait in your model

```
