seno19 / weather
Anax 模块
v1.0.8
2020-12-20 14:22 UTC
Requires
- php: >=7.3
- anax/anax-cli: ^1.2
- anax/commons: ^2.0.14
Requires (Dev)
- anax/anax: ^2.0.17
- anax/anax-ramverk1-me: ^1.0.0
- phpmetrics/phpmetrics: ^2
- phpunit/phpunit: ^7
README
天气模块
此模块旨在与php的anax框架一起使用。要安装模块,请按照以下步骤操作。
导航到您的anax文件结构根目录。
1: 安装模块
运行以下命令
composer require seno19/weather
2: 复制文件
运行以下命令
rsync -av vendor/seno19/weather/config ./
rsync -av vendor/seno19/weather/view ./
rsync -av vendor/seno19/weather/src ./
如果您想运行测试,请运行以下命令 rsync -av vendor/seno19/weather/test ./
3: API密钥
在 config/api/keys.php
中添加您的API密钥
您可以在以下位置找到密钥
ipstack
openweathermap
4: 导航栏
在 config/navbar/header.php
中添加以下内容
[
"text" => "DI",
"url" => "di",
"title" => "di",
],