schöenef / here-api-connector
一个用于连接here API服务器端的PHP库
v1.1.2
2023-03-07 00:04 UTC
Requires
- php: >=8.1
- ext-json: *
- guzzlehttp/guzzle: ^7.5
README
一个用于连接here API服务器端的PHP库
安装
这是纯PHP集成,也存在一个针对Symfony的专用包。
- 您需要一个here API开发者账户。
- 通过composer安装库:
$ composer require schoenef/here-api-connector:~1.0 - 设置
require_once __DIR__ . '/vendor/autoload.php'; $connector = new HereApiConnector([ 'apiKey' => 'YOUR API KEY', 'lang' => 'de' ]); print_r($connector->searchLocation('Schönhauser A', [ 'country' => 'DEU' ]));
选项
这是针对here API 6.2版本开发的,所有选项都有文档说明