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

ActiveLibrary[API Development](/categories/api)

mrgswift/mapbox-api-laravel
===========================

A Laravel 5+ Package for managing Mapbox Datasets and Tilesets

1.0.2-alpha(5y ago)001MITPHPPHP &gt;=7.0.0

Since Dec 11Pushed 5y agoCompare

[ Source](https://github.com/mrgswift/mapbox-api-laravel)[ Packagist](https://packagist.org/packages/mrgswift/mapbox-api-laravel)[ RSS](/packages/mrgswift-mapbox-api-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (4)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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

3

Last Release

1865d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2319364?v=4)[Matthew Guillot](/maintainers/mrgswift)[@mrgswift](https://github.com/mrgswift)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[spatie/laravel-route-discovery

Auto register routes using PHP attributes

23645.0k2](/packages/spatie-laravel-route-discovery)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

10710.0k](/packages/neuron-core-neuron-laravel)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[dragon-code/laravel-json-response

Automatically always return a response in JSON format

1118.6k1](/packages/dragon-code-laravel-json-response)

PHPackages © 2026

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