PHP code example of lvzhao1995 / amap-sdk

1. Go to this page and download the library: Download lvzhao1995/amap-sdk 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/ */

    

lvzhao1995 / amap-sdk example snippets



use \Amap\Amap;

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

$map = new Amap($options);