Download the PHP package bthpan/weather without Composer
On this page you can find all versions of the php package bthpan/weather. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package weather
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.
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.
| File | Description |
|---|---|
src/Controller/weatherController.php |
This is a controller class,"weather" service to show 5 days history and 7 days forecast. |
src/Controller/weatherApiController.php |
This is a controller class,"weatherApi" return the same data like the above but with json format. |
src/IpGeo/IpGeoweather.php |
This is a module class, return data from api.ipstack.com with json format. |
src/OpenWeather/OpenWeather.php |
This is a module class, return data from api.openweathermap.org with json format. |
src/OpenWeather/NameToGeo.php |
This is a module class, return data from nominatim.openstreetmap.org with json format. |
router/450_weather-controller.php |
The routes supported for the weather service. The route is implemented by the weatherController class. |
router/451_weather-api-controller.php |
The routes supported for the weather API. The route is implemented by the weatherApiController class. |
weather/README.md |
Short explanation on how to add new datasets. |
You may copy all the module files with the following command.
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.


