ricorocks-digital-agency / giveaninch
A package that simplifies calculations around distance and metrics.
1.1.0
2021-02-01 13:41 UTC
Requires
- php: ^7.1|^8.0
- illuminate/support: ^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-11-29 06:22:20 UTC
README
A Laravel package that provides geographic distance calculations between points.
Installation
You can install the package via composer:
composer require ricorocks-digital-agency/giveaninch
Usage
Using the package is simple via the GiveAnInch
facade.
Get the distance in KM between two points
GiveAnInch::from(0, 0)->to(0, 0)->getDistance();
Check if two coordinates are within a given radius of each other
GiveAnInch::from(0, 0)->to(0, 0)->isWithin(10);
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email lukeraymonddowning@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.