Download the PHP package majesty-scofield/laravel-mysql-spatial without Composer
On this page you can find all versions of the php package majesty-scofield/laravel-mysql-spatial. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download majesty-scofield/laravel-mysql-spatial
More information about majesty-scofield/laravel-mysql-spatial
Files in majesty-scofield/laravel-mysql-spatial
Package laravel-mysql-spatial
Short Description MySQL spatial data types extension for Laravel.
License MIT
Informations about the package laravel-mysql-spatial
Laravel MySQL Spatial extension
Laravel package to easily work with MySQL Spatial Data Types and MySQL Spatial Functions.
Please check the documentation for your MySQL version. MySQL's Extension for Spatial Data was added in MySQL 5.5 but many Spatial Functions were changed in 5.6 and 5.7.
Versions
1.x.x
: MySQL 5.7 and 9.0 (Laravel 9+)
This package also works with MariaDB. Please refer to the MySQL/MariaDB Spatial Support Matrix for compatibility.
Installation
Add the package using composer:
shell php artisan make:migration create_places_table shell php artisan migrate shell php artisan make:model Place shell php artisan make:migration update_places_table shell $ composer test
or
$ composer test:unit $ composer test:integration shell $ make start_db # starts MySQL 8.0
or
$ make start_db V=5.7 # starts MySQL 5.7
## Contributing
Recommendations and pull request are most welcome! Pull requests with tests are the best! There are still a lot of MySQL spatial functions to implement or creative ways to use spatial functions.
## Credits
Originally inspired from [njbarrett's Laravel postgis package](https://github.com/njbarrett/laravel-postgis).
All versions of laravel-mysql-spatial with dependencies
ext-pdo Version *
ext-json Version *
illuminate/database Version ^10.0
illuminate/support Version ^10.0
geo-io/wkb-parser Version ^1.0
jmikola/geojson Version ^1.0