bthpan / weather

v1.0.9 2020-12-11 11:38 UTC

This package is auto-updated.

Last update: 2024-09-11 21:36:39 UTC


README

Latest Stable Version Build Status CircleCI

Scrutinizer Code Quality Code Coverage Build Status Codacy Badge

天气模块实现了天气服务

作为Anax模块安装

安装过程分为两个步骤,1) 首先使用composer安装模块,然后 2) 将其集成到您的Anax基础安装中。

步骤 1,使用composer安装

使用composer安装模块。

composer require bthpan/weather

步骤 2,集成到您的Anax基础

您可以在目录 vendor/bthpan/weather/ 中查看模块文件。它包括以下部分。

您可以使用以下命令复制所有模块文件。

# Move to dir me/redovisa
rsync -av  vendor/bthpan/weather/config/router/  ./config/router/
# Copy the files for creating the services into $di for ipgeoweather and openweather
rsync -av  vendor/bthpan/weather/test/config/di/ipstack.php  ./config/di/
rsync -av  vendor/bthpan/weather/test/config/di/openweather.php  ./config/di/
# Copy the config files(apikey) for creating the services into $di for ipgeoweather and openweather
rsync -av  vendor/bthpan/weather/test/config/ipstack.php ./config/
rsync -av  vendor/bthpan/weather/test/config/weather.php  ./config/
# Copy the view files
rsync -av  vendor/bthpan/weather/view/ ./view

天气服务现在在路由 weather2/ 上激活。天气API现在在路由 weather2Api 上激活。

依赖关系

这是一个Anax模块,其主要用途是与其他Anax框架一起使用。

您可以在 anax/anax 上安装一个实例,并在其中运行此模块以进行测试和开发。