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-13) Package for managing Mapbox Datasets and Tilesets

v1.1.0(3w ago)0289↓85.4%MITPHPPHP ^8.2CI failing

Since Oct 30Pushed 3w 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 2w ago

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

Mapbox API for Laravel 11-13
============================

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

[![Tests](https://github.com/pushlogicltd/mapbox-api-laravel/actions/workflows/tests.yml/badge.svg)](https://github.com/pushlogicltd/mapbox-api-laravel/actions/workflows/tests.yml)[![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-13) 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-13**

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

46

—

FairBetter than 92% of packages

Maintenance95

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Total

3

Last Release

21d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.2.0

v1.1.0PHP ^8.2

### 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

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M188](/packages/spatie-laravel-health)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[nativephp/mobile

NativePHP for Mobile

1.1k102.1k146](/packages/nativephp-mobile)[spatie/laravel-export

Create a static site bundle from a Laravel app

679153.2k7](/packages/spatie-laravel-export)

PHPackages © 2026

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