Anax weather module.
Open Issues: 0
- php: >=7.2
- anax/anax-lite: ^1.0.24
- anax/cache: ^2.0.0@beta
- anax/content: ^2.0.0@beta
- anax/page: ^2.0.0@beta
- anax/textfilter: ^1
- anax/view: ^2.0.0@beta
- phpmetrics/phpmetrics: ^2
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2023-03-29 00:50:36 UTC
Table of content
- Install as Anax module
- Install using scaffold postprocessing file
- Install and setup Anax
Install as Anax module
This is how you install the module into an existing Anax installation.
Install using composer.
composer require mahw17/weather
Copy the needed configuration and setup the weather as a route handler for the route
rsync -av vendor/mahw17/weather/config ./
You need to create your own config file for apikeys to ipstack and darksky.
After you retrieved your own set of api keys create a new or update config/apikey_sample.php if you choose to change filename you must also update config/weather with that filename.
Copy the needed views.
rsync -av vendor/mahw17/weather/view ./
rsync -av vendor/mahw17/weather/htdocs ./
Copy the API documentation.
rsync -av vendor/mahw17/weather/content ./
The API documentation is now available through the route
The weather module is now active on the route
weather/ according to the documentation. You may try it out on the route
weather to get the weather forecast for any valid ip-address or coordinates.
Install using scaffold postprocessing file
The module supports a postprocessing installation script, to be used with Anax scaffolding. The script executes the default installation, as outlined above.
The postprocessing script should be run after the
composer require is done.
Install and setup Anax
You need a Anax installation, before you can use this module. You can create a sample Anax installation, using the scaffolding utility
Scaffold a sample Anax installation
anax-site-develop into the directory
$ anax create anax anax-site-develop $ cd anax
Point your webserver to
anax/htdocs and Anax should display a Home-page.
This is a mahw17 module and primarly intended to be used together with the Anax framework.
This software carries a MIT license. See LICENSE.txt for details.
. ..: Copyright (c) 2017 - 2018 Marcus Holmersson (firstname.lastname@example.org)