PHP code example of ichynul / tpext-geocoder

1. Go to this page and download the library: Download ichynul/tpext-geocoder 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/ */

    

ichynul / tpext-geocoder example snippets


return [
    // 全局中间件
    '' => [
    ],
    'api' => [
        \app\middleware\Cors::class,//跨域中间件(根据实际情况设置)
    ],
    'geocoder' => [
        \app\middleware\Cors::class,//为geocoder也设置一个跨域中间件
    ],
];