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

ActiveLibrary

faicchia/haversine
==================

Yet another Haversine formula service.

v1.0.1(3y ago)015MITPHPPHP ^8.0

Since Jun 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/faicchia/haversine)[ Packagist](https://packagist.org/packages/faicchia/haversine)[ RSS](/packages/faicchia-haversine/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Haversine
=========

[](#haversine)

Yet another Haversine formula service.

Installation
------------

[](#installation)

```
composer require faicchia/haversine
```

Usage
-----

[](#usage)

```
$distance = Haversine::kilometers(
    from: Point::new(latitude: 41.902782, longitude: 12.496366), // Rome
    to: Point::new(latitude: 51.509865, longitude: -0.118092)    // London
);
// 1433.47926

$distance = Haversine::miles(
    from: Point::new(latitude: 41.902782, longitude: 12.496366),
    to: Point::new(latitude: 51.509865, longitude: -0.118092)
);
// 890.722441
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~4 days

Total

2

Last Release

1421d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43ad45bd4380cf68e1353a9552a0e18d8e791d72af74a56ff05bfbf6c17158ec?d=identicon)[faicchia](/maintainers/faicchia)

---

Top Contributors

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

---

Tags

distanceearthgeohaversinehaversine-distance

###  Code Quality

TestsPest

### Embed Badge

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

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

PHPackages © 2026

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