seno19 / weather
Anax module
v1.0.8
2020-12-20 14:22 UTC
Requires
- php: >=7.3
- anax/anax-cli: ^1.2
- 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
Weather module
This module is meant to be used with the anax framework for php. To install the module follow the steps bellow.
Navigate to the root of your anax file structure.
1: Install the module
run the following command
composer require seno19/weather
2: Copy files
run the following commands
rsync -av vendor/seno19/weather/config ./
rsync -av vendor/seno19/weather/view ./
rsync -av vendor/seno19/weather/src ./
and if you want to run the tests run the following command
rsync -av vendor/seno19/weather/test ./
3: API-keys
in config/api/keys.php
add your api-keys
you can find the keys here
ipstack
openweathermap
4: Navbar
in config/navbar/header.php
add the following
[
"text" => "DI",
"url" => "di",
"title" => "di",
],