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

ActiveLibrary[API Development](/categories/api)

pushlogicltd/mapbox-api-laravel
===============================

A Laravel 11+ Package for managing Mapbox Datasets and Tilesets

v1.0.1(2y ago)0229↓33.3%MITPHPPHP &gt;=8.2.0

Since Oct 30Pushed 2y agoCompare

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

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

Mapbox API for Laravel 11+
==========================

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

[![Build Status](https://camo.githubusercontent.com/094566f97d266a2dd848e78d816bb050d09dd265a6be8e97461714b011218881/68747470733a2f2f7472617669732d63692e6f72672f707573686c6f6769636c74642f6d6170626f782d6170692d6c61726176656c2e737667)](https://travis-ci.org/pushlogicltd/mapbox-api-laravel)[![Latest Stable Version](https://camo.githubusercontent.com/6d106a42d5902e52ea1b4ee66ceb4200ec99ce8fc68ebe03413284b5e397d580/68747470733a2f2f706f7365722e707567782e6f72672f707573686c6f6769636c74642f6d6170626f782d6170692d6c61726176656c2f762f737461626c65)](https://packagist.org/packages/pushlogicltd/mapbox-api-laravel)[![Latest Unstable Version](https://camo.githubusercontent.com/e8c72a42b4135e37f02d97bb95e8c81b3af4afd363b4fb9dd2d6ecb4500cfc7b/68747470733a2f2f706f7365722e707567782e6f72672f707573686c6f6769636c74642f6d6170626f782d6170692d6c61726176656c2f762f756e737461626c65)](https://packagist.org/packages/pushlogicltd/mapbox-api-laravel)[![Monthly Downloads](https://camo.githubusercontent.com/8072666225876a8e94b9294a4f44e49c5fb677ad002c988dcae8ddec5d6470ab/68747470733a2f2f706f7365722e707567782e6f72672f707573686c6f6769636c74642f6d6170626f782d6170692d6c61726176656c2f642f6d6f6e74686c79)](https://packagist.org/packages/pushlogicltd/mapbox-api-laravel)[![License](https://camo.githubusercontent.com/c1f54a945e09973e4d32d66c77522ea1675e40bdb9bd4ed94be7a9bcfa639920/68747470733a2f2f706f7365722e707567782e6f72672f707573686c6f6769636c74642f6d6170626f782d6170692d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/pushlogicltd/mapbox-api-laravel)

A [Laravel](https://laravel.com/) 11+ 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 pushlogicltd/mapbox-api-laravel

```

**Laravel 11+**

The service provider should be automatically registered.

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

```

**Lumen:**

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

$app->withFacades(true, [
    'PushLogicLtd\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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

735d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/122616099?v=4)[Tony Brown](/maintainers/PushLogicUK)[@PushLogicUK](https://github.com/PushLogicUK)

---

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/pushlogicltd-mapbox-api-laravel/health.svg)

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

###  Alternatives

[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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