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

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

mrden/mkad-distance
===================

Расчет расстояний за МКАД

4.0.0(2y ago)61.4k↓50%2MITPHPPHP ^8

Since Jun 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mrden/mkad-distance)[ Packagist](https://packagist.org/packages/mrden/mkad-distance)[ RSS](/packages/mrden-mkad-distance/feed)WikiDiscussions 4.x Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (15)Used By (0)

Расчет расстояния пути за МКАД (или КАД в Санкт-Петербурге) на PHP (по дорогам)
===============================================================================

[](#расчет-расстояния-пути-за-мкад-или-кад-в-санкт-петербурге-на-php-по-дорогам)

Данная библиотека позволяет рассчитать расстояние пути от МКАД (КАД) до адреса, города и т.д. Целевой пункт назначения можно указать координатами (долгота, широта) или просто текстом.

Установка
---------

[](#установка)

`composer require mrden/mkad-distance`

Примеры использования
---------------------

[](#примеры-использования)

```
use Mrden\MkadDistance\Distance;
// Расчет по массиву координат
$distance = Distance::calculateByRouteToMoscowMkad(
    [55.860297, 37.120094]
);

// Расчет по экземпляру класса \Mrden\MkadDistance\Geometry\Point
$distance = Distance::calculateByRouteToMoscowMkad(
    new \Mrden\MkadDistance\Geometry\Point(55.860297, 37.120094)
);

// Расчет по текстовому названию
$distance = Distance::calculateByRouteToSpbKad(
    'Санкт-Петербург, посёлок Песочный, Советская улица, 34/21',
    ['yandexGeoCoderApiKey' => 'YOUR_TOKEN']
);

// Cache
$cache = new AnySimpleCacheInterfaceRealisation();
$distance = Distance::calculateByRouteToMoscowMkad(
    new \Mrden\MkadDistance\Geometry\Point(55.860297, 37.120094),
    ['cache' => $cache]
);
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~85 days

Total

15

Last Release

820d ago

Major Versions

v0.3 → v1.0.12021-03-21

v1.0.2 → 2.0.02022-04-08

2.0.1 → 3.x-dev2024-02-17

3.0.0 → 4.0.02024-02-19

PHP version history (7 changes)v0.1PHP &gt;=5.6

v0.2PHP &gt;=7.1.0

v0.3PHP &gt;=7.3.0

2.0.0PHP 7.\* || 8.\*

2.x-devPHP ^7.3 || ^8.0

3.x-devPHP ^7.3

4.0.0PHP ^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/061350964bbda42d813c08324091fcb1fc27a523eaf8f95ecf9aade420d63851?d=identicon)[mrden](/maintainers/mrden)

---

Top Contributors

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

---

Tags

distancemkadрасстояниерасстояние за мкад

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/mrden-mkad-distance/health.svg)](https://phpackages.com/packages/mrden-mkad-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)
