Download the PHP package tarfin-labs/laravel-spatial without Composer
On this page you can find all versions of the php package tarfin-labs/laravel-spatial. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tarfin-labs/laravel-spatial
More information about tarfin-labs/laravel-spatial
Files in tarfin-labs/laravel-spatial
Download tarfin-labs/laravel-spatial
More information about tarfin-labs/laravel-spatial
Files in tarfin-labs/laravel-spatial
Vendor tarfin-labs
Package laravel-spatial
Short Description Laravel package to work with geospatial data types and functions.
License MIT
Homepage https://github.com/tarfin-labs/laravel-spatial
Package laravel-spatial
Short Description Laravel package to work with geospatial data types and functions.
License MIT
Homepage https://github.com/tarfin-labs/laravel-spatial
Keywords tarfin-labslaravel-spatial
Please rate this library. Is it a good library?
Informations about the package laravel-spatial
Laravel Spatial
This is a Laravel package to work with geospatial data types and functions.
It supports only MySQL Spatial Data Types and Functions, other RDBMS is on the roadmap.
Laravel Compatibility
Version | Supported Laravel Versions |
---|---|
3.x |
^11.0 , ^12.0 |
2.x |
^8.0, ^9.0, ^10.0 |
Supported data types:
Point
Available Scopes:
withinDistanceTo($column, $coordinates, $distance)
selectDistanceTo($column, $coordinates)
orderByDistanceTo($column, $coordinates, 'asc')
Installation
You can install the package via composer:
Usage
Generate a new model with a migration file:
1- Migrations:
bash php artisan vendor:publish --provider="TarfinLabs\LaravelSpatial\LaravelSpatialServiceProvider" json { "lat": 25.45634, "lng": 35.54331, "srid": 4326 } bash composer test
### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Turan Karatug](https://github.com/tarfin-labs)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
All versions of laravel-spatial with dependencies
PHP Build Version
Package Version
The package tarfin-labs/laravel-spatial contains the following files
Loading the files please wait ....