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

ActiveLibrary[Framework](/categories/framework)

canylmz/laravel-postgis
=======================

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

v0.0.1(6y ago)171[4 PRs](https://github.com/canylmz/laravel6-postgis/pulls)MITPHPPHP &gt;=7.2

Since Oct 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/canylmz/laravel6-postgis)[ Packagist](https://packagist.org/packages/canylmz/laravel-postgis)[ Docs](https://github.com/canylmz/laravel6-postgis)[ RSS](/packages/canylmz-laravel-postgis/feed)WikiDiscussions master Synced yesterday

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

Laravel 6 PostGIS
=================

[](#laravel-6-postgis)

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

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

[](#installation)

[PHP](https://php.net) &gt;=7.2 and [Laravel](http://laravel.com) 6.0 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 6 PostGIS, simply require the project using [Composer](https://getcomposer.org):

```
composer require canylmz/laravel-postgis
```

Usage
-----

[](#usage)

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

```
