zakclayton / php-mapbox
A PHP Wrapper for the Mapbox JS cURL API
Installs: 48 596
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ~5.6|~7.0
- guzzlehttp/guzzle: ^6.3
- sebastiansulinski/dotenv: ^1.1
Requires (Dev)
- phpunit/phpunit: >=5.4.3
- squizlabs/php_codesniffer: ^2.3
This package is not auto-updated.
Last update: 2024-11-14 19:15:30 UTC
README
A PHP Wrapper for the MapboxJS cURL API
This package aims to take the API provided by Mapbox and create a simple PHP wrapper that allows you to call various different endpoints and return the results in various formats.
At the moment this API will only return Geocoding results. Additional elements will be built on an as needed basis.
Install
Via Composer
$ composer require zakclayton/php-mapbox
Usage
$query = 'The Statue of Liberty'; $mapbox = new MapboxApi(MAPBOX_ACCESS_TOKEN); $geoCodingApi = $mapbox->createGeoCodingApi($query); $json = $geoCodingApi->getJson(); $entity = $geoCodingApi->call();
Parameters
Coming soon.
Testing
Tests are currently being written. Use this package with caution!
$ composer test
Security
If you discover any security related issues, please email zak@24kdesign.co.uk instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.