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

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

heinbez/mapbox
==============

Mapbox Static Map Generator

1.0.x-dev(10y ago)214MITPHP

Since Dec 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/heinbez/mapbox)[ Packagist](https://packagist.org/packages/heinbez/mapbox)[ RSS](/packages/heinbez-mapbox/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Installation
------------

[](#installation)

Installing the library is super easy.

### Using Composer

[](#using-composer)

```
composer require heinbez/mapbox

```

Configuration
-------------

[](#configuration)

```
include '../vendor/autoload.php';

Mapbox\Mapbox::setConfig(
    new Mapbox\MapboxConfiguration([
        'host' => 'https://api.mapbox.com/v4',
        'style' => 'mapbox.light',
        'client' => [
            'key' => 'xxx',
            'secret' => 'xxx'
        ]
    ])
);
```

Using
-----

[](#using)

```
$mapbox = new Mapbox\Mapbox($width, $height);

// Configure your path style
$mapbox->setStyle(
    new Mapbox\MapboxStyle([
        'stroke-width' => 6,
        'stroke' => '#6b5fe9',
        'stroke-opacity' => 1
    ])
);

// Push Coordinates
$mapbox->pushCoordinates(
    new MapboxCollection(array(
        [144.96300, -37,80650],
        [144.96500, -37,80680],
        etc..
    ));
);

// Return the map URL
echo $mapbox->generate();
```

### Preview

[](#preview)

[![](https://camo.githubusercontent.com/d1d7848f85c56933ca9674a0144f6b08f2537884ef4d4e2580f142e8991324df/687474703a2f2f692e696d6775722e636f6d2f4e5268653668522e706e67)](https://camo.githubusercontent.com/d1d7848f85c56933ca9674a0144f6b08f2537884ef4d4e2580f142e8991324df/687474703a2f2f692e696d6775722e636f6d2f4e5268653668522e706e67)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

3856d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2772185?v=4)[Heinrich Bezuidenhout](/maintainers/heinbez)[@heinbez](https://github.com/heinbez)

---

Top Contributors

[![heinbez](https://avatars.githubusercontent.com/u/2772185?v=4)](https://github.com/heinbez "heinbez (51 commits)")

---

Tags

pathmapstaticgeomapboxjourney

### Embed Badge

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

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

###  Alternatives

[php-coord/php-coord

PHPCoord is a PHP library to aid in handling coordinates. It can convert coordinates for a point from one system to another and also calculate distance between points.

109966.2k12](/packages/php-coord-php-coord)

PHPackages © 2026

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