PHPackages                             wladtitow/mapbox-php - 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. wladtitow/mapbox-php

ActiveLibrary

wladtitow/mapbox-php
====================

PHP API mapbox library.

05PHPCI failing

Since Nov 19Pushed 6y agoCompare

[ Source](https://github.com/WladTitow/mapbox-php)[ Packagist](https://packagist.org/packages/wladtitow/mapbox-php)[ RSS](/packages/wladtitow-mapbox-php/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP-библиотека API mapbox
=========================

[](#php-библиотека-api-mapbox)

В разработке
------------

[](#в-разработке)

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

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

Библиотека устанавливается с помощью пакетного менеджера [Composer](https://getcomposer.org).

1. Добавьте библиотеку в файл `composer.json` вашего проекта:

    ```
    {
         "repositories": [
             {
                 "type": "vcs",
                 "url": "https://github.com/WladTitow/yandex-market-php-common"
             }
         ],
         "require": {
             "wladtitow/mapbox-php": "dev-master"
         }
     }
    ```
2. Включите автозагрузчик Composer в код проекта:

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

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

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

```
    use \Mapbox\Models\RequestPoint as Point;

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

    $token = 'тут токен';

    $navigationClient = new \Mapbox\Clients\Navigation\RetrieveMatrixClient('test', $token);

    $matrixRequest = new \Mapbox\Models\Request\RetrieveMatrixRequest();

    $point1 = new Point(array('longitude' => -122.42, 'latitude' => 37.78));
    $point2 = new Point(array('longitude' => -122.45, 'latitude' => 37.91));
    $point3 = new Point(array('longitude' => -122.48, 'latitude' => 37.73));

    $matrixRequest
        ->addRequestPoint($point1)
        ->addRequestPoint($point2)
        ->addRequestPoint($point3);

    $retrieveMatrix = $navigationClient->getRetrieveMatrix($matrixRequest);

    print_r($retrieveMatrix->getCode());
    print_r($retrieveMatrix->getDurations());
    print_r($retrieveMatrix->getDistances());
    print_r($retrieveMatrix->getSources());
    print_r($retrieveMatrix->getDestinations());
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/889545a00f1afd35621ccba34349d9039aee104fe725a9c03adc2816a3f4513e?d=identicon)[WladTitow](/maintainers/WladTitow)

---

Top Contributors

[![WladTitow](https://avatars.githubusercontent.com/u/56533194?v=4)](https://github.com/WladTitow "WladTitow (20 commits)")

### Embed Badge

![Health badge](/badges/wladtitow-mapbox-php/health.svg)

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

PHPackages © 2026

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