PHPackages                             ajarunthomas/haversine - 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. ajarunthomas/haversine

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

ajarunthomas/haversine
======================

calculate distance between 2 geolocations using haversine formula

v1.0.0(5y ago)088MITPHPPHP &gt;=7.2.0

Since Jan 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ajarunthomas/Haversine)[ Packagist](https://packagist.org/packages/ajarunthomas/haversine)[ Docs](https://github.com/ajarunthomas/Haversine)[ RSS](/packages/ajarunthomas-haversine/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Haversine
=========

[](#haversine)

A Simple Facade for Laravel that calculates the Distance between 2 geo locations defined by latitude and longitude details using the Haversine Formula.

Instructions
------------

[](#instructions)

### Installation using composer

[](#installation-using-composer)

```
composer require ajarunthomas/haversine

```

### Include the Facade

[](#include-the-facade)

```
use Ajarunthomas\Facades\Haversine;

```

Optionally include the Facade in the aliases section of the `app.php` config file

```
'Haversine' => Ajarunthomas\Facades\Haversine::class,

```

### Calculate the distance between 2 cordinates

[](#calculate-the-distance-between-2-cordinates)

```
$distance = Haversine::distance([24.885368,55.120223],[25.223954,55.274097]);

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1986d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8df5e2aba1df1c8e69ae885692ead141743b9b4f1f04def89a3d1c48e4f69869?d=identicon)[ajarunthomas](/maintainers/ajarunthomas)

---

Top Contributors

[![ajarunthomas](https://avatars.githubusercontent.com/u/16983358?v=4)](https://github.com/ajarunthomas "ajarunthomas (4 commits)")

---

Tags

distancehaversineformula

### Embed Badge

![Health badge](/badges/ajarunthomas-haversine/health.svg)

```
[![Health](https://phpackages.com/badges/ajarunthomas-haversine/health.svg)](https://phpackages.com/packages/ajarunthomas-haversine)
```

###  Alternatives

[mjaschen/phpgeo

Simple Yet Powerful Geo Library

1.6k9.1M27](/packages/mjaschen-phpgeo)[oefenweb/damerau-levenshtein

Get text similarity level with Damerau-Levenshtein distance

40280.7k4](/packages/oefenweb-damerau-levenshtein)[matthiasmullie/geo

Geography helper

6379.9k1](/packages/matthiasmullie-geo)[ballen/distical

A distance (Lat/Long) calculation library for PHP

40194.3k2](/packages/ballen-distical)[jeroendesloovere/distance

Get distance between two locations using PHP.

3464.4k](/packages/jeroendesloovere-distance)[laravie/geotools

Geo-related tools PHP 7+ library

18122.1k1](/packages/laravie-geotools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
