PHPackages                             uginroot/php-location - 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. uginroot/php-location

ActiveLibrary

uginroot/php-location
=====================

Php type location

v1.1(6y ago)0131MITPHPPHP ^7.2

Since Mar 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/uginroot/php-location)[ Packagist](https://packagist.org/packages/uginroot/php-location)[ RSS](/packages/uginroot-php-location/feed)WikiDiscussions master Synced 1mo ago

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

Php location type
=================

[](#php-location-type)

Install
-------

[](#install)

```
composer require uginroot/php-location:^1.1
```

Example
-------

[](#example)

```
use Uginroot\PhpLocation\Location;

$location = new Location(1, 1);
$location
    ->move(1, 1) // Location(2, 2)
    ->moveLatitude(1) // Location(3, 2)
    ->moveLongitude(1) // Location(3, 3)
    ->distance(new Location(4, 4)) // float(1.4142135623731)
;

$location
    ->setLatitude(55.7539) // Location(55.7539, 1)
    ->setLongitude(37.6208) // Location(55.7539, 37.6208)
    ->distanceEarth(new Location(59.9398, 30.3146)) // 634568.9802775994 ~ 635km
;

Location::createFromString('55.7539', '37.6208'); // Location(55.7539, 37.6208)
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

2242d ago

PHP version history (2 changes)v1.0PHP ^7.4

v1.1PHP ^7.2

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/uginroot-php-location/health.svg)

```
[![Health](https://phpackages.com/badges/uginroot-php-location/health.svg)](https://phpackages.com/packages/uginroot-php-location)
```

PHPackages © 2026

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