PHPackages                             adecoder/coordinate - 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. adecoder/coordinate

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

adecoder/coordinate
===================

Distance Calculate and 3rd Party API Services in PHP

1.0(4y ago)15MITPHPPHP &gt;=8.0

Since Feb 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/md-aamroni/coordinate)[ Packagist](https://packagist.org/packages/adecoder/coordinate)[ RSS](/packages/adecoder-coordinate/feed)WikiDiscussions master Synced 1mo ago

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

 [ ![](https://user-images.githubusercontent.com/61397934/151708131-1373e724-9264-4a52-b2f4-022f3d948357.png) ](https://adecoder.com)

Distance Calculate and 3rd Party API Services in PHP
----------------------------------------------------

[](#distance-calculate-and-3rd-party-api-services-in-php)

[![workflow](https://github.com/md-aamroni/coordinate/actions/workflows/application.yml/badge.svg)](https://github.com/md-aamroni/coordinate/actions/workflows/application.yml/badge.svg)[![Copyright](https://camo.githubusercontent.com/3ce4ed8cd7835b10bc83026b6c4753dc4eacdec056701f2a2738f57751b98e55/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f707972696768742d614465636f6465722d627269676874677265656e2e737667)](https://camo.githubusercontent.com/3ce4ed8cd7835b10bc83026b6c4753dc4eacdec056701f2a2738f57751b98e55/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f707972696768742d614465636f6465722d627269676874677265656e2e737667)[![License](https://camo.githubusercontent.com/1a2e0606685ce00663bf829868f794fd3fc9c86f8d80cae324734129e0723a58/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e737667)](./LICENSE)[![Developed](https://camo.githubusercontent.com/8005eb3ccebe44912eeef4b6485960281cd97f18bc31204ef889007f0e007b17/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d382e302d627269676874677265656e2e737667)](https://camo.githubusercontent.com/8005eb3ccebe44912eeef4b6485960281cd97f18bc31204ef889007f0e007b17/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d382e302d627269676874677265656e2e737667)[![Copyright](https://camo.githubusercontent.com/9d690c14b1cf187389471bd968ca962ab773388e4e376eb44c1763625a37fd72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446576656c6f7065722d6d642e61616d726f6e692d627269676874677265656e2e737667)](https://camo.githubusercontent.com/9d690c14b1cf187389471bd968ca962ab773388e4e376eb44c1763625a37fd72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446576656c6f7065722d6d642e61616d726f6e692d627269676874677265656e2e737667)

### Installation

[](#installation)

```
composer require adecoder/coordinate
```

### [Environment Varaible](.env-example)

[](#environment-varaible)

```
IP_API_KEY=your-api-key
IP_API_URL=http://api.ipapi.com/

POSITION_STACK_KEY=your-api-key
POSITION_STACK_URL=http://api.positionstack.com/v1/reverse
```

### Distance Calculate

[](#distance-calculate)

```
use Adecoder\Coordinate\Distance;

$area = new Distance();
echo $area->set(lat1: 23.6293159, lng1: 90.4870177, lat2: 24.3761958, lng2: 88.5793325)->get(unit: 'k');
```

### IP Details

[](#ip-details)

```
use Adecoder\Coordinate\Lookup;
use Adecoder\Coordinate\Clients\Services\IpApi;

$loopup = new Lookup();
echo '';
print_r($loopup->ipaddr(ip: '103.151.11.64'))
echo '';
```

### GeoLocation Details

[](#geolocation-details)

```
use Adecoder\Coordinate\Lookup;

$coords = new Lookup();
echo '';
print_r($loopup->coords(lat: '23.6307225', lng: '90.4901339'))
echo '';
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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

Unknown

Total

1

Last Release

1567d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/802858044d5e6fc5a4a61dc3a1bf663bb23a8ee310750bc4bcba0494fc232ae5?d=identicon)[md-aamroni](/maintainers/md-aamroni)

---

Top Contributors

[![md-aamroni](https://avatars.githubusercontent.com/u/61397934?v=4)](https://github.com/md-aamroni "md-aamroni (1 commits)")

---

Tags

coordinatesdistance-calculationgeolocationipaddress-trackeripapipositionstack-api

### Embed Badge

![Health badge](/badges/adecoder-coordinate/health.svg)

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

###  Alternatives

[codelight/acf-blocks

414.0k](/packages/codelight-acf-blocks)

PHPackages © 2026

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