PHPackages                             rafaelfragoso/haversini-formula - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rafaelfragoso/haversini-formula

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rafaelfragoso/haversini-formula
===============================

This PHP class can replace the Google Distance Matrix to calculate the distance between two points using latitude and longitude. It will prevent you to do massive requests to Google servers and enhance your service performance.

2.0.0(6y ago)45212.0k↓14.8%17MITPHPPHP &gt;=7.1CI failing

Since Aug 28Pushed 2y ago5 watchersCompare

[ Source](https://github.com/orafaelfragoso/php-haversine-formula)[ Packagist](https://packagist.org/packages/rafaelfragoso/haversini-formula)[ Docs](https://github.com/rafaelfragosom/php-haversine-formula)[ RSS](/packages/rafaelfragoso-haversini-formula/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

php-haversini-formula [![Build Status](https://camo.githubusercontent.com/1f36368dc9321874fd0ec8c2d45dd8654314b7d29dc8c67a29cf7dcb058b9a9a/68747470733a2f2f7472617669732d63692e6f72672f6f72616661656c667261676f736f2f7068702d686176657273696e652d666f726d756c612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/orafaelfragoso/php-haversine-formula)
=================================================================================================================================================================================================================================================================================================================================================================

[](#php-haversini-formula-)

Calculates de distance between two geocode points 📌🗺

How to use it:
--------------

[](#how-to-use-it)

Install the library via Composer or clone the repo:

`composer install rafaelfragoso/haversini-formula`

After the installation is complete, you can load the class and start using it.

```
