PHPackages                             mahw17/weather - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. mahw17/weather

ActiveLibrary[Framework](/categories/framework)

mahw17/weather
==============

Anax weather module.

v1.0.3(7y ago)010MITPHPPHP &gt;=7.2

Since Dec 1Pushed 7y agoCompare

[ Source](https://github.com/mahw17/weather)[ Packagist](https://packagist.org/packages/mahw17/weather)[ Docs](https://github.com/mahw17/weather)[ RSS](/packages/mahw17-weather/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (8)Versions (5)Used By (0)

Weather
=======

[](#weather)

[![Latest Stable Version](https://camo.githubusercontent.com/fd00b1296814901e285afc08ef254172329e28c7e187cac515e3e6e70270f452/68747470733a2f2f706f7365722e707567782e6f72672f6d61687731372f776561746865722f762f737461626c65)](https://packagist.org/packages/mahw17/weather)[![Build Status](https://camo.githubusercontent.com/1e85b7ea037612ab995baf2799c906aedb279f9aea88b4ee6462e3232daf741b/68747470733a2f2f7472617669732d63692e6f72672f6d61687731372f776561746865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mahw17/weather)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2bfefe27d6cb99ad2c0702ffab2c72b3bb8ee59ede5046133578558207d11bab/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61687731372f776561746865722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mahw17/weather/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/704b57d1b1bfd656c2ba27bf73444edd2c2f768d063f09fc37d340c542bd6fc0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61687731372f776561746865722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mahw17/weather/?branch=master)[![Build Status](https://camo.githubusercontent.com/f5b073b86c3d58b0a490985f155bebf5f6302d632f2f97c0ea58cf9a3ddaee3b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61687731372f776561746865722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mahw17/weather/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/0a6f3126e863d6541e502e32f4153c9da1314fe1b6fc8d1210cf9400679686e3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61687731372f776561746865722f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)

Table of content
----------------

[](#table-of-content)

- [Install as Anax module](#Install-as-Anax-module)
- [Install using scaffold postprocessing file](#Install-using-scaffold-postprocessing-file)
- [Install and setup Anax](#Install-and-setup-Anax)
- [Dependency](#Dependency)
- [License](#License)

Install as Anax module
----------------------

[](#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 `weather`.

```
rsync -av vendor/mahw17/weather/config ./

```

You need to create your own config file for apikeys to [ipstack](https://ipstack.com/signup/free) and [darksky](https://darksky.net/dev/register).

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 ./

```

Install javascripts and stylesheets needed to render map.

```
rsync -av vendor/mahw17/weather/htdocs ./

```

Both the javascripts and the stylesheet is set within the view (view/mahw17/weather/result.php). A more proper way is to merged this into config/page.php instead. But OBSERVE! the default layout template (viem/anax/v2/layout/dbwebb\_se) is set to do the javascript async and this will not work, so if you're using the default template and want to move the init of javascript to the page config file, async must be removed from layout template.

Copy the API documentation.

```
rsync -av vendor/mahw17/weather/content ./

```

The API documentation is now available through the route `api/weather`.

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
------------------------------------------

[](#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.

```
bash vendor/mahw17/weather/.mahw17/scaffold/postprocess/weather.bash

```

The postprocessing script should be run after the `composer require` is done.

Install and setup Anax
----------------------

[](#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 [`anax-cli`](https://github.com/canax/anax-cli).

Scaffold a sample Anax installation `anax-site-develop` into the directory `weather`.

```
$ anax create anax anax-site-develop
$ cd anax

```

Point your webserver to `anax/htdocs` and Anax should display a Home-page.

Dependency
----------

[](#dependency)

This is a mahw17 module and primarly intended to be used together with the Anax framework.

License
-------

[](#license)

This software carries a MIT license. See [LICENSE.txt](LICENSE.txt) for details.

```
 .
..:  Copyright (c) 2017 - 2018 Marcus Holmersson (mahw17@student.bth.se)

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

2718d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f071c4ba65ee57c75c2817366528c2cb2ece6c7f6542406f3f9ca8083764b81?d=identicon)[mahw17](/maintainers/mahw17)

---

Top Contributors

[![mahw17](https://avatars.githubusercontent.com/u/30869905?v=4)](https://github.com/mahw17 "mahw17 (50 commits)")

---

Tags

frameworkmicromvcboilerplateeducation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mahw17-weather/health.svg)

```
[![Health](https://phpackages.com/badges/mahw17-weather/health.svg)](https://phpackages.com/packages/mahw17-weather)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
