Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Laravel Mysql Spatial | 713 | 21 | 16 | a year ago | 26 | October 17, 2020 | 78 | other | PHP | |
MySQL Spatial Data Extension integration with Laravel. | ||||||||||
Laravel Eloquent Spatial | 167 | 11 days ago | 24 | February 28, 2023 | 2 | mit | PHP | |||
Laravel Eloquent spatial package. | ||||||||||
Nova Map | 110 | 10 months ago | 10 | June 04, 2022 | 6 | Vue | ||||
Laravel Nova Map Field | ||||||||||
Laravel Geo | 46 | 1 | a year ago | 12 | March 17, 2022 | 5 | gpl-3.0 | PHP | ||
GeoSpatial integration on Laravel 5.2+ that supports MySQL and PostgreSQL. | ||||||||||
Indonesianboundaries | 8 | 9 months ago | mit | TypeScript | ||||||
Indonesian Boundaries | ||||||||||
Laravel Spatial | 2 | 4 years ago | 3 | other | PHP | |||||
Laravel 5 package working with spatial data |
This package is fully untested, undocumented and unstable and is a combination of the two great packages:
Installation made super-easy with composer:
composer require apptimists/laravel-spatial
Also add the LaravelSpatial\SpatialServiceProvider::class
to your config/app.php
.
Works with PostgreSQL installed PostGIS extension and MySQL at least version 5.6.
If you try using it on a shared host which is not fulfilling those requirements, change your provider.
We use the GeoJson PHP Library for describing spatial fields as GeoJSON object, e.g.:
use GeoJSON\Geometry\Point;
...
$eloquent = new MyModel();
$eloquent->location = new Point([49.7, 6.9]);
...
$eloquent->save();