定制 zakclayton/php-mapbox 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Latest Version on Packagist Software License Build Status

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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-10