PHPackages                             bluevertex/mapbox-api-laravel - 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. bluevertex/mapbox-api-laravel

ActiveLibrary[API Development](/categories/api)

bluevertex/mapbox-api-laravel
=============================

A Laravel 11+ Package for managing Mapbox Datasets and Tilesets

1.0.1-alpha(8y ago)11.4k5[1 issues](https://github.com/BlueVertex/mapbox-api-laravel/issues)MITPHPPHP &gt;=7.0.0

Since Dec 11Pushed 1y ago2 watchersCompare

[ Source](https://github.com/BlueVertex/mapbox-api-laravel)[ Packagist](https://packagist.org/packages/bluevertex/mapbox-api-laravel)[ RSS](/packages/bluevertex-mapbox-api-laravel/feed)WikiDiscussions master Synced 3w ago

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

Mapbox API for Laravel 5+
=========================

[](#mapbox-api-for-laravel-5)

[![Build Status](https://camo.githubusercontent.com/d52b27c3930f0c24c7d12427e935220afdc482d36a30f25ae7c560f3172f3efa/68747470733a2f2f7472617669732d63692e6f72672f426c75655665727465782f6d6170626f782d6170692d6c61726176656c2e737667)](https://travis-ci.org/BlueVertex/mapbox-api-laravel)[![Latest Stable Version](https://camo.githubusercontent.com/7e08eeb7b62cc9b454e03c0b03c4f2e52c9956361302d75f0531a839d7101fb6/68747470733a2f2f706f7365722e707567782e6f72672f626c75657665727465782f6d6170626f782d6170692d6c61726176656c2f762f737461626c65)](https://packagist.org/packages/bluevertex/mapbox-api-laravel)[![Latest Unstable Version](https://camo.githubusercontent.com/c09038082859ffd3f024cedd846a8c054db72c624f3e0c9a672594bc6cc75635/68747470733a2f2f706f7365722e707567782e6f72672f626c75657665727465782f6d6170626f782d6170692d6c61726176656c2f762f756e737461626c65)](https://packagist.org/packages/bluevertex/mapbox-api-laravel)[![Monthly Downloads](https://camo.githubusercontent.com/e37bee7763268af1826d2d0de3a008af3397c2b9901f8e1fabf375f3efce8001/68747470733a2f2f706f7365722e707567782e6f72672f626c75657665727465782f6d6170626f782d6170692d6c61726176656c2f642f6d6f6e74686c79)](https://packagist.org/packages/bluevertex/mapbox-api-laravel)[![License](https://camo.githubusercontent.com/67049888d7d092e7a697e91b39e5b0c3d9ab41ec6616732e5bffd65cd7e09948/68747470733a2f2f706f7365722e707567782e6f72672f626c75657665727465782f6d6170626f782d6170692d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/bluevertex/mapbox-api-laravel)

A [Laravel](https://laravel.com/) 5+ Package for managing [Mapbox](https://www.mapbox.com/api-documentation/) Datasets and Tilesets

This library supports the listing, creation, and deletion of the following types via the Mapbox API:

1. [Datasets](https://www.mapbox.com/api-documentation/#datasets)
2. [Tilesets](https://www.mapbox.com/api-documentation/#tilesets)
3. [Uploads](https://www.mapbox.com/api-documentation/#uploads)

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

[](#installation)

**Install Via Composer:**

```
composer require bluevertex/mapbox-api-laravel

```

**Laravel 5.5+**

The service provider should be automatically registered.

**Laravel ≤ 5.4:**

```
// Laravel: config/app.php
BlueVertex\MapBoxAPILaravel\MapBoxAPILaravelServiceProvider::class

```

```
// Facade Alias
'Mapbox' => BlueVertex\MapBoxAPILaravel\Facades\Mapbox::class,

```

**Lumen:**

```
// bootstrap/app.php:
$app->register(BlueVertex\MapBoxAPILaravel\MapBoxAPILaravelServiceProvider::class);

$app->withFacades(true, [
    'BlueVertex\MapBoxAPILaravel\Facades\Mapbox' => 'Mapbox'
]);

```

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

[](#configuration)

Add the following to your `.env` file:

```
MAPBOX_ACCESS_TOKEN=[Your Mapbox Access Token]
MAPBOX_USERNAME=[Your Mapbox Username]

```

*Note: Make sure your Access Token has the proper scope for all the operations you need to perform.*

Usage
-----

[](#usage)

### Datasets

[](#datasets)

**List Datasets:**

```
$list = Mapbox::datasets()->list();

```

**Create Dataset:**

```
$dataset = Mapbox::datasets()->create([
	'name' => 'My Dataset',
	'description' => 'This is my dataset'
]);

```

**Retrieve Dataset:**

```
$dataset = Mapbox::datasets($datasetID)->get();

```

**Update Dataset:**

```
$dataset = Mapbox::datasets($datasetID)->update([
	'name' => 'My Dataset Updated',
	'description' => 'This is my latest dataset'
]);

```

**Delete Dataset:**

```
$response = Mapbox::datasets($datasetID)->delete();

```

**List Feature:**

```
$response = Mapbox::datasets($datasetID)->features()->list();

```

**Insert or Update Feature:**

```
$response = Mapbox::datasets($datasetID)->features()->add($feature);

```

**Retrieve Feature:**

```
$response = Mapbox::datasets($datasetID)->features($featureID)->get();

```

**Delete Feature:**

```
$response = Mapbox::datasets($datasetID)->features($featureID)->delete();

```

### Tilesets

[](#tilesets)

**List Tilesets:**

```
// Options array is optional
$list = Mapbox::tilesets()->list([
	'type' 			=> 'raster',
	'visibility' 	=> 'public',
	'sortby' 		=> 'modified',
	'limit' 		=> 500
]);

```

### Uploads

[](#uploads)

**Get S3 Credentials:**

```
// Returns S3Credentials Object
$response = Mapbox::uploads()->credentials();

```

**Create Upload:**

```
$response = Mapbox::uploads()->create([
	'tileset' => '{username}.mytilesetid',
	'url' => 'mapbox://datasets/{username}/{dataset}', // Or S3 Bucket URL from S3Credentials Object
	'name' => 'Upload Name'
]);

```

**Retrieve Upload Status:**

```
$response = Mapbox::uploads($uploadID)->get();

```

**List Upload Statuses:**

```
$list = Mapbox::uploads()->list();

```

**Delete Upload:**

```
$response = Mapbox::uploads($uploadID)->delete();

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

3073d ago

### Community

Maintainers

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

---

Top Contributors

[![mixaster](https://avatars.githubusercontent.com/u/3452655?v=4)](https://github.com/mixaster "mixaster (10 commits)")

---

Tags

laravellaravel-5-packagelaravel-frameworklaravel-packagemapboxmapbox-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bluevertex-mapbox-api-laravel/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

9782.1M161](/packages/laravel-ai)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[moonshine/moonshine

Laravel administration panel

1.3k239.9k75](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

721160.4k12](/packages/tallstackui-tallstackui)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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