2017 © Pedro Peláez
 

library laravel-spatial

Spatial data types extension for Laravel.

image

apptimists/laravel-spatial

Spatial data types extension for Laravel.

  • Wednesday, November 15, 2017
  • by johannesberdin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 113 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 16 % Grown

The README.md

Laravel Spatial extension

This package is fully untested, undocumented and unstable and is a combination of the two great packages: - Laravel PostGIS extension - Laravel MySQL spatial extension, (*1)

Installation

Installation made super-easy with composer:, (*2)

composer require apptimists/laravel-spatial

Also add the LaravelSpatial\SpatialServiceProvider::class to your config/app.php., (*3)

Requirements

Works with PostgreSQL installed PostGIS extension and MySQL at least version 5.6., (*4)

If you try using it on a shared host which is not fulfilling those requirements, change your provider., (*5)

Usage

We use the GeoJson PHP Library for describing spatial fields as GeoJSON object, e.g.:, (*6)

use GeoJSON\Geometry\Point;

...

$eloquent = new MyModel();
$eloquent->location = new Point([49.7, 6.9]);

...

$eloquent->save();

The Versions

15/11 2017

dev-master

9999999-dev

Spatial data types extension for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Johannes Berdin