bthpan / weather
A weather module.
Requires
- php: >=7.4
- anax/commons: ^2.0.14
Requires (Dev)
- anax/anax: ^2.0.17
- phpunit/phpunit: ^7
README
Weather module implements a weather service
Install as an Anax module
There are two steps in the installation procedure, 1) first install the module using composer and then 2) integrate it into you Anax base installation.
Step 1, install using composer
Install the module using composer.
composer require bthpan/weather
Step 2, integrate into your Anax base
You can review the module files in the directory vendor/bthpan/weather/
. It consists of the following parts.
You may copy all the module files with the following command.
# 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
The weather service is now active on the route weather2/
.
The weather API is now active on the route weather2Api
.
Dependency
This is a Anax modulen and its usage is primarly intended to be together with the Anax framework.
You can install an instance on anax/anax and run this module inside it, to try it out for test and development.