kris3xiq / weatherservice
Anax weather module.
v2.0.1
2020-12-24 03:00 UTC
Requires
- php: >=7.4
- anax/commons: ^2.0.14
- anax/di: ^2.0.3
Requires (Dev)
- anax/anax: ^2.0.17
- anax/anax-ramverk1-me: ^1.0.0
- phpmetrics/phpmetrics: ^2
- phpunit/phpunit: ^7
README
Badges
Installation
Step 1
Install using composer:
composer require kris3xiq/weatherservice
Step 2
Be in the root of your ANAX installation and run:
bash vendor/kris3xiq/weatherservice/install.bash
Step 3
Add your own API-keys to IPStack and OpenWeatherMap. If you open up your config directory you will notice the file api-keys-example. Follow the instructions given in the file.
Step 4
All you need to do now is to add the module to your ANAX navbar. Go into config/navbar/header.php Add the following lines into the menu-item array.
[
"text" => "Weather service",
"url" => "weather",
"title" => "Weather service",
"submenu" => [
"items" => [
[
"text" => "Weather service",
"url" => "weather",
"title" => "IP-Geolocator.",
],
[
"text" => "Weather service API(JSON)",
"url" => "weather-api",
"title" => "Weather service API(JSON).",
],
],
],
],