PHP code example of sixteener / sdk_amap

1. Go to this page and download the library: Download sixteener/sdk_amap library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sixteener / sdk_amap example snippets



use \Amap\Amap;

$options = [
    'sign'=>false, //是否进行数字签名,默认不签名
    'private_key'=>'', //数字签名私钥,sign=true时必填
    'key'=>''//api调用key,必填
];

$map = new Amap($options);