PHP code example of zakclayton / php-mapbox
1. Go to this page and download the library: Download zakclayton/php-mapbox library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zakclayton / php-mapbox example snippets
bash
$ composer
php
$query = 'The Statue of Liberty';
$mapbox = new MapboxApi(MAPBOX_ACCESS_TOKEN);
$geoCodingApi = $mapbox->createGeoCodingApi($query);
$json = $geoCodingApi->getJson();
$entity = $geoCodingApi->call();