PHP code example of pushlogicltd / mapbox-api-laravel

1. Go to this page and download the library: Download pushlogicltd/mapbox-api-laravel 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/ */

    

pushlogicltd / mapbox-api-laravel example snippets


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

$app->withFacades(true, [
    'PushLogicLtd\MapBoxAPILaravel\Facades\Mapbox' => 'Mapbox'
]);

// Options array is optional
$list = Mapbox::tilesets()->list([
	'type' 			=> 'raster',
	'visibility' 	=> 'public',
	'sortby' 		=> 'modified',
	'limit' 		=> 500
]);

// Returns S3Credentials Object
$response = Mapbox::uploads()->credentials();