hellemarck / weather
ramverk1 课程使用的天气模块。
v1.2.1
2020-12-04 15:44 UTC
Requires
- php: >=7.2
- anax/commons: ^2.0.14
Requires (Dev)
- anax/anax: ^2.0.17
- phpmetrics/phpmetrics: ^2
- phpunit/phpunit: ^7
README
Anax 框架的天气模块
此模块是为在 PHP 框架 Anax 中使用而开发的。
安装
composer require hellemarck/weather
make install
make install test
复制配置和模块文件
rsync -av vendor/hellemarck/weather/config/ config/
rsync -av vendor/hellemarck/weather/src/ src/
rsync -av vendor/hellemarck/weather/test/ test/
rsync -av vendor/hellemarck/weather/view/ view/
添加您的个人 API 密钥
修改文件 config/api_keys.php
以保存您的个人 API 密钥。
结构
天气服务器将在 /weather
上可用
并且 IP 服务器将在 /ip
上可用
运行测试
make test
请先修复文件 api_keys.php