liamclaridge444/php-mapbox-api

A PHP wrapper for the Mapbox API

v0.1 2023-12-18 14:42 UTC

This package is auto-updated.

Last update: 2024-04-06 14:16:28 UTC


README

CI codecov

An easy to use wrapper for the Mapbox API, written in PHP.

Inspiration for this project was taken from KnpLabs/php-github-api.

Requirements

Installation

You can install the package via the composer require command:

composer require liamclaridge444/php-mapbox-api

Usage

Instantiate a Mapbox client with your access token, then chain the API name and method (see example below).

$accessToken = 'your-access-token';

$client = new Mapbox($accessToken);

$response = $client->datasets()->list();