elpr/anax-weather-module

v2.0.0 2019-12-12 13:23 UTC

This package is auto-updated.

Last update: 2024-09-12 23:51:54 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status CircleCI Maintainability

目录

作为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