PHPackages                             zakclayton/php-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. [API Development](/categories/api)
4. /
5. zakclayton/php-mapbox

ActiveLibrary[API Development](/categories/api)

zakclayton/php-mapbox
=====================

A PHP Wrapper for the Mapbox JS cURL API

1.1(8y ago)549.2kMITPHPPHP ~5.6|~7.0

Since Nov 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ZakClayton/php-mapbox)[ Packagist](https://packagist.org/packages/zakclayton/php-mapbox)[ Docs](https://github.com/:vendor/:package_name)[ RSS](/packages/zakclayton-php-mapbox/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

php-mapbox
==========

[](#php-mapbox)

A PHP Wrapper for the MapboxJS cURL API

[![Latest Version on Packagist](https://camo.githubusercontent.com/6532e4b9a2f3dfc5a8e84e5910a88ef450288134e07cdc94c348657e2f34c51c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a616b636c6179746f6e2f7068702d6d6170626f782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zakclayton/php-mapbox)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/edf352c45741b1edb5bc6bb6747bcb6012465749c3cfab9dec623e93b6eaa127/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7a616b636c6179746f6e2f7068702d6d6170626f782f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/zakclayton/php-mapbox)

This package aims to take the API provided by Mapbox and create a simple PHP wrapper that allows you to call various different endpoints and return the results in various formats.

*At the moment this API will only return Geocoding results. Additional elements will be built on an as needed basis.*

Install
-------

[](#install)

Via Composer

```
$ composer require zakclayton/php-mapbox
```

Usage
-----

[](#usage)

```
$query        = 'The Statue of Liberty';
$mapbox       = new MapboxApi(MAPBOX_ACCESS_TOKEN);
$geoCodingApi = $mapbox->createGeoCodingApi($query);
$json         = $geoCodingApi->getJson();
$entity       = $geoCodingApi->call();
```

Parameters
----------

[](#parameters)

Coming soon.

Testing
-------

[](#testing)

Tests are currently being written. Use this package with caution!

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Zak Clayton](https://github.com/ZakClayton)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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

Total

2

Last Release

3108d ago

Major Versions

v0.1 → 1.12017-11-13

### Community

Maintainers

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

---

Top Contributors

[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (49 commits)")[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (31 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (10 commits)")[![jotaelesalinas](https://avatars.githubusercontent.com/u/2042875?v=4)](https://github.com/jotaelesalinas "jotaelesalinas (8 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (7 commits)")[![hansott](https://avatars.githubusercontent.com/u/3886384?v=4)](https://github.com/hansott "hansott (7 commits)")[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (5 commits)")[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (5 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (5 commits)")[![reinink](https://avatars.githubusercontent.com/u/882133?v=4)](https://github.com/reinink "reinink (5 commits)")[![marcqualie](https://avatars.githubusercontent.com/u/101022?v=4)](https://github.com/marcqualie "marcqualie (4 commits)")[![browner12](https://avatars.githubusercontent.com/u/5232313?v=4)](https://github.com/browner12 "browner12 (4 commits)")[![hassankhan](https://avatars.githubusercontent.com/u/1781985?v=4)](https://github.com/hassankhan "hassankhan (3 commits)")[![jclyons52](https://avatars.githubusercontent.com/u/6395559?v=4)](https://github.com/jclyons52 "jclyons52 (3 commits)")[![alexbilbie](https://avatars.githubusercontent.com/u/77991?v=4)](https://github.com/alexbilbie "alexbilbie (2 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (2 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (2 commits)")[![dragoonis](https://avatars.githubusercontent.com/u/146321?v=4)](https://github.com/dragoonis "dragoonis (2 commits)")[![kdubuc](https://avatars.githubusercontent.com/u/895661?v=4)](https://github.com/kdubuc "kdubuc (2 commits)")[![mAAdhaTTah](https://avatars.githubusercontent.com/u/4371429?v=4)](https://github.com/mAAdhaTTah "mAAdhaTTah (2 commits)")

---

Tags

mapboxmapbox API

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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