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 4d 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 32% 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

4411d 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

[mjaschen/phpgeo

Simple Yet Powerful Geo Library

1.6k8.6M22](/packages/mjaschen-phpgeo)[oefenweb/damerau-levenshtein

Get text similarity level with Damerau-Levenshtein distance

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

Geography helper

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

A distance (Lat/Long) calculation library for PHP

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

Get distance between two locations using PHP.

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

Geo-related tools PHP 7+ library

19105.4k1](/packages/laravie-geotools)

PHPackages © 2026

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