1. Go to this page and download the library: Download xiaobinqt/aweather 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/ */
xiaobinqt / aweather example snippets
use Xiaobinqt\Weather\Weather;
// 高德开放平台应用 API Key
$key = 'xxx';
$w = new Weather($key);