elpr / anax-weather-module
Anax天气模块。
v2.0.0
2019-12-12 13:23 UTC
Requires
- php: >=7.2
- anax/anax-cli: ^1.2
- anax/commons: ^2.0.0@beta
Requires (Dev)
- anax/anax-lite: ^1.0.24
- anax/cache: ^2.0.0-beta.5
- anax/page: ^2.0.0-beta.1
- anax/request: ^2.0.2
- anax/url: ^2.0.0-alpha.1
- anax/view: ^2.0.2
- phpmetrics/phpmetrics: ^2
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-09-12 23:51:54 UTC
README
目录
作为Anax模块安装
这是如何将模块安装到现有的Anax安装中的。
使用Composer安装
composer require elpr/anax-weather-module
使用scaffold后处理文件安装
该模块支持后处理安装脚本,可与Anax脚手架一起使用。该脚本执行默认安装。
bash vendor/elpr/anax-weather-module/.anax/scaffold/postprocess.d/300_weather.bash
后处理脚本应在执行composer require后运行。
手动安装
复制所需的配置,并将anax-weather-module设置为路由处理程序,处理路由weather。
rsync -av vendor/elpr/anax-weather-module/config ./
rsync -av vendor/elpr/anax-weather-module/src ./
rsync -av vendor/elpr/anax-weather-module/view ./
rsync -av vendor/elpr/anax-weather-module/test ./
rsync -av vendor/elpr/anax-weather-module/weather ./htdocs/img/
anax-weather-module现在在路由weather/上生效。根据API文档,您可以在路由json_weather上进行测试以获取JSON响应。
API密钥
创建一个新的config/api_keys.php并在其中存储您的API密钥。您可以查看示例config/api_keys_ex.php。
依赖关系
这是一个Anax模块,主要目的是与Anax框架一起使用。
许可协议
本软件采用MIT许可协议。有关详细信息,请参阅LICENSE.txt。
.
..: Copyright (c) 2019 Elena Perers