hellemarck/weather

ramverk1 课程使用的天气模块。

v1.2.1 2020-12-04 15:44 UTC

This package is auto-updated.

Last update: 2024-09-04 23:38:28 UTC


README

Build Status CircleCI Scrutinizer Code Quality Code Coverage Build Status

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