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

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

sahinersever/distance-coordinates
=================================

This class calculating distance between two coordinates..

1.1(5y ago)134MITPHPPHP &gt;=7.1

Since Nov 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sahinersever93/distance-coordinates)[ Packagist](https://packagist.org/packages/sahinersever/distance-coordinates)[ RSS](/packages/sahinersever-distance-coordinates/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

About
-----

[](#about)

Distance Coordinates is calculating distance between two coordinates with **Haversine Formula**

Requires
--------

[](#requires)

php: &gt;= 7.0

Installation &amp; Loading
--------------------------

[](#installation--loading)

Distance Coordinates is available on [Packagist](https://packagist.org/packages/sahinersever/distance-coordinates) (using semantic versioning), and installation via [Composer](https://getcomposer.org) is the recommended way to install Distance Coordinates. Just add this line to your `composer.json` file:

```
composer require sahinersever/distance-coordinates
```

Simple Usage
------------

[](#simple-usage)

```
require __DIR__.'/vendor/autoload.php';

use CalcCoordinate\Coordinate\{Distance};

$Distance = new Distance();

$lat1 = 41.01408;
$lon1 = 28.63621;

$lat2 = 41.01287;
$lon2 = 29.23321;

echo $Distance->distance($lat1,$lon1,$lat2,$lon2)->km();

echo $Distance->distance($lat1,$lon1,$lat2,$lon2)->mile();

echo $Distance->distance($lat1,$lon1,$lat2,$lon2)->meter();
```

### Result

[](#result)

```
50.090005392239
31.124486357862
50090.005392239

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

2042d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bfa7cc4e0b658a9447963bcb5db6d0376f06865f4eaeb42425fe2fe34df6f7c0?d=identicon)[sahinersever93](/maintainers/sahinersever93)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[honl/magento2-templatehints

H&amp;O Magento 2 Advanced Template Hints module

289575.2k1](/packages/honl-magento2-templatehints)[saeedpooyanfar/laravel-annotation

Laravel #\[Annotation\]

182.7k](/packages/saeedpooyanfar-laravel-annotation)

PHPackages © 2026

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