zakclayton/php-mapbox
最新稳定版本:1.1
Composer 安装命令:
composer require zakclayton/php-mapbox
包简介
A PHP Wrapper for the Mapbox JS cURL API
关键字:
README 文档
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.
统计信息
- 总下载量: 49.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-10