kris3xiq / weatherservice
ANAX天气模块。
v2.0.1
2020-12-24 03:00 UTC
Requires
- php: >=7.4
- anax/commons: ^2.0.14
- anax/di: ^2.0.3
Requires (Dev)
- anax/anax: ^2.0.17
- anax/anax-ramverk1-me: ^1.0.0
- phpmetrics/phpmetrics: ^2
- phpunit/phpunit: ^7
README
徽章
安装
步骤 1
使用composer安装
composer require kris3xiq/weatherservice
步骤 2
确保你处于ANAX安装的根目录,并运行
bash vendor/kris3xiq/weatherservice/install.bash
步骤 3
将您的API密钥添加到IPStack和OpenWeatherMap。如果您打开配置目录,您会注意到有一个名为api-keys-example的文件。按照文件中的说明操作。
步骤 4
现在您需要做的只是将模块添加到ANAX导航栏。进入config/navbar/header.php,将以下行添加到menu-item数组中。
[
"text" => "Weather service",
"url" => "weather",
"title" => "Weather service",
"submenu" => [
"items" => [
[
"text" => "Weather service",
"url" => "weather",
"title" => "IP-Geolocator.",
],
[
"text" => "Weather service API(JSON)",
"url" => "weather-api",
"title" => "Weather service API(JSON).",
],
],
],
],