olbe19 / weather
Anax 天气模块。
v1.0.2
2020-12-08 15:06 UTC
Requires
- php: >=7.4
- anax/commons: ^2.0.14
Requires (Dev)
- anax/anax: ^2.0.17
- anax/anax-ramverk1-me: ^1.0.0
- phpmetrics/phpmetrics: ^2
- phpunit/phpunit: ^7
README
Travis
Circle CI
Scrutinizer
Code climate
Codacy
安装
通过克隆仓库或使用composer安装。
git clone https://github.com/ollebergkvist/ramverk1-weather-module
or
composer require olbe19/weather
设置
设置环境和安装依赖项
composer install
chmod 777 cache/*
make install
bash vendor/olbe19/weather/.anax/scaffold/postprocess.d/001_olbe19_weather.
composer dump
API密钥
模块利用2个公共API来运行,IPStack和Openweathermap。
Add 2 files named "api_key_ip.txt" and "api_key_map.txt" to config/
containing your keys for Ipstack and Openweathermap respectively.
导航栏
如何将模块挂载到导航栏的说明。
Add the Weather and API Documentation controllers to the navbar in config/navbar/header.php and config/navbar/responsive.php.
[
"text" => "Weather",
"url" => "weather",
"title" => "Weather",
],
[
"text" => "API Documentation",
"url" => "api",
"title" => "API Documentation",
],
问题
请在这里提出问题。
https://github.com/ollebergkvist/ramverk1-weather-module/issues