Skip to content

khs1994-php/tencent-map

Repository files navigation

Tencent Map SDK

GitHub stars PHP from Packagist GitHub (pre-)release Build Status StyleCI

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

CI/CD

Releases

No releases published

Packages

No packages published

Languages