abberadhi / weather-module
用于anax的天气模块
v1.0.6
2021-05-09 23:06 UTC
Requires
- php: >=7.4
- anax/commons: ^2.0.14
Requires (Dev)
- anax/anax: ^2.0.17
- phpmetrics/phpmetrics: ^2
- phpunit/phpunit: ^7
README
安装
使用Composer安装
composer require abberadhi/weather-module
配置
移动文件
在根目录下
rsync -av ./vendor/abberadhi/weather-module/config/ ./config/
rsync -av ./vendor/abberadhi/weather-module/src/ ./src/
rsync -av ./vendor/abberadhi/weather-module/view/ ./view/
rsync -av ./vendor/abberadhi/weather-module/view/ ./view/
rsync -av ./vendor/abberadhi/weather-module/test/ ./test/
rsync -av ./vendor/abberadhi/weather-module/htdocs/css ./htdocs
API密钥
- 复制
.weatherapi-example.json
并命名为.weatherapi.json
,放入您的个人API密钥 - 复制
.api-example.json
并命名为.api.json
,放入您的个人API密钥。
样式
在您的config/page.php
中,在stylesheets
下插入此行
"css/weather.css"
测试
运行
sudo make test