PHPackages                             aamant/distance - 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. aamant/distance

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

aamant/distance
===============

calculating the distance between differents points

0.1.1(12y ago)0431MITPHPPHP &gt;=5.3.0

Since Apr 16Pushed 12y ago1 watchersCompare

[ Source](https://github.com/aamant/distance)[ Packagist](https://packagist.org/packages/aamant/distance)[ RSS](/packages/aamant-distance/feed)WikiDiscussions master Synced 3w ago

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

Distance
========

[](#distance)

Calculating the distance between differents points

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

[](#installation)

Just create a `composer.json` file for your project:

```
{
    "require": {
        "aamant/distance": "@stable"
    }
}
```

Usage
-----

[](#usage)

```
$distance = new Distance(
	new GoogleMapProvider(new CurlHttpAdapter, 'fr-FR', GoogleMapProvider::MODE_BICYCLING));
$result = $distance->distance(array('montpellier'), array('paris', 'perpignan', 'lyon'));
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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 ~0 days

Total

2

Last Release

4458d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c23c03de68c6f5956fbd55ba4bbdaecaf4cf272c2594d344cd4921347c670c4?d=identicon)[aamant](/maintainers/aamant)

---

Top Contributors

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

---

Tags

distancegoip

### Embed Badge

![Health badge](/badges/aamant-distance/health.svg)

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

###  Alternatives

[toin0u/geocoder-laravel

Geocoder Service Provider for Laravel

7615.4M17](/packages/toin0u-geocoder-laravel)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M276](/packages/illuminate-pipeline)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)

PHPackages © 2026

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