khs1994 / tencent-map
Tencent Map SDK
dev-master
2018-03-12 08:55 UTC
Requires
- php: >=7.1
- khs1994/curl: @dev
Requires (Dev)
- phpunit/phpunit: ~7.0
This package is auto-updated.
Last update: 2024-10-12 19:49:33 UTC
README
Installation
To Use Tencent Map SDK, simply:
$ composer require khs1994/tencent-map
For latest commit version:
$ composer require khs1994/tencent-map @dev
Usage
<?php require __DIR__.'/vendor/autoload.php'; use TencentMap\{ Error\TencentMapError, TencentMap }; const APP_KEY = 'GTOBZ-63LW6-7N6SX-MRRVB-LECGJ-XXXXX'; $map = TencentMap::tencentMap(APP_KEY); // must try-catch try { $search = $map->search(); $search->setBoundaryRegion('北京'); $output = $search->exec('酒店'); } catch (TencentMapError $e) { die($e->getMessage()); } var_dump($output);
PHP CaaS
Powered By khs1994-docker/lnmp