PHPackages                             mabn17/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. mabn17/weather

AbandonedArchivedLibrary[Framework](/categories/framework)

mabn17/weather
==============

A weather module for the anax framework.

v1.1.2(7y ago)055MITPHPPHP &gt;=7.2

Since Nov 22Pushed 7y agoCompare

[ Source](https://github.com/mabn17/ramverk1-module)[ Packagist](https://packagist.org/packages/mabn17/weather)[ Docs](https://dbwebb.se/anax)[ RSS](/packages/mabn17-weather/feed)WikiDiscussions master Synced 5d ago

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

Anax weather module
===================

[](#anax-weather-module)

[![Latest Stable Version](https://camo.githubusercontent.com/7cf349305b5d2e8ace20070ed159f2dd3fbb5123c390c7ef2761f6a3def7f6c5/68747470733a2f2f706f7365722e707567782e6f72672f6d61626e31372f776561746865722f762f737461626c65)](https://packagist.org/packages/mabn17/weather) [![License](https://camo.githubusercontent.com/a1870db2e31ae7d25589cdaf0c8005dc21354ad12e6e702ff6eab7257b89bde8/68747470733a2f2f706f7365722e707567782e6f72672f6d61626e31372f776561746865722f6c6963656e7365)](https://packagist.org/packages/mabn17/weather)

[![Build Status](https://camo.githubusercontent.com/30f3b9fe321d5c986a6a0fc677a4823a31f4d64fef458be35b6e40cc93d757c2/68747470733a2f2f7472617669732d63692e6f72672f6d61626e31372f72616d7665726b312d6d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mabn17/ramverk1-module) [![Build Status](https://camo.githubusercontent.com/cd8f5f75060a10615d1376a96a849dbff0db41ef630ab70b0eb579f65171b2d3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61626e31372f72616d7665726b312d6d6f64756c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mabn17/ramverk1-module/build-status/master) [![Code Intelligence Status](https://camo.githubusercontent.com/85927e64815a4975e2fb3b6b5e89e0b4ba00cfa23aa1fa1700bed3b2c90981da/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61626e31372f72616d7665726b312d6d6f64756c652f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/7e3ed975b9c3aef32c0f3486470d02866ee8fa911e727fea940601c5d5c322c5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61626e31372f72616d7665726b312d6d6f64756c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mabn17/ramverk1-module/?branch=master)

[![Codacy Badge](https://camo.githubusercontent.com/ed3338cf60dcc90b9d7ccf95e167320607ec9872b773189ec4cf0713fe7222d7/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3432363264353163653464303439376162363530643133393662633934376261)](https://www.codacy.com/app/mabn17/ramverk1-module?utm_source=github.com&utm_medium=referral&utm_content=mabn17/ramverk1-module&utm_campaign=Badge_Grade) [![Maintainability](https://camo.githubusercontent.com/86f6e4e86f316d0f0e8b1fcdb950d78cf2afd03e9a405f2993f88fd08f33b193/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f33333333636661386163383532383736323534652f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/mabn17/ramverk1-module/maintainability) [![Code Coverage](https://camo.githubusercontent.com/11ab74e2d69c4406f7797b6337cd6be26bea0383069b2d6d069e28710712f40d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61626e31372f72616d7665726b312d6d6f64756c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mabn17/ramverk1-module/?branch=master)

Anax weather module implementing a weather application.

This Weather module can be used to see the weeks weather and/or the weather for the past month. Use this together with an Anax installation.

This module has a graphical part in witch the user searches for a given location and resives the data of the weeks weather and the past 30 days.

It also provides a REST api with HTTP method GET. The route takes a location as an argument and returns a JSON response with the same and more details as the graphical interface. See more in [View/explainJson.php](https://github.com/mabn17/ramverk1-module/blob/master/view/weather/explainJson.php).

Install and setup Anax
======================

[](#install-and-setup-anax)

First install your own version of [Anax](https://packagist.org/packages/anax/anax-ramverk1-me).

Install the weather app as part of Anax
=======================================

[](#install-the-weather-app-as-part-of-anax)

Install using composer and then integrate the module with your Anax installation.

Install with composer
---------------------

[](#install-with-composer)

We install the Weather app as a module from [Packagist](https://packagist.org/packages/mabn17/weather).

```
composer require mabn17/weather

```

Configuration files for weather
-------------------------------

[](#configuration-files-for-weather)

We need to copy the configuration files for the weather module.

```
rsync -av vendor/mabn17/weather/config/keys.php config/

```

**Note:** Remember to change the value to your own [DarkSky](https://darksky.net/) API key.

Views &amp; Documentation
-------------------------

[](#views--documentation)

We need to copy the API documentation and the weather module views.

```
rsync -av vendor/mabn17/weather/view/weather view/anax/v2/

```

If you would like to change the documentation to markdown then create a new file in `anax/content/`. The route will have the same name as your .md file has.

Controllers and Models
----------------------

[](#controllers-and-models)

Move the files in `vendor/mabn17/weather/src/Controller/` into `src/Controller/` then change `$page->add(/view/weather/name)` to the commented line in both controller classes.

Move `vendor/mabn17/weather/src/Weather` folder into the `src/` folder.

```
rsync -av vendor/mabn17/weather/src/Controller/ src/Controller/
rsync -av vendor/mabn17/weather/src/Weather src/

```

Router files
------------

[](#router-files)

You need to include the router file in your router configuration `anax/config/router/`. There is a sample you can use in `vendor/mabn17/config/router/902_vader.php`.

```
rsync -av vendor/mabn17/anax/weather/config/router/902_vader.php config/router/

```

DI Services
-----------

[](#di-services)

You need to add the configuration file for di.

You need to add the configuration for the di services `anax/config/di/`. There is a sample you can use in `vendor/mabn17config/di/weather.php`.

```
rsync -av vendor/mabn17/weather/config/di/weather.php config/di/

```

License
-------

[](#license)

```
.
..: Copyright (c) 2018 - 2019 Martin Borg (martin.d@live.se)

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

2727d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87e32130b8686aba243c071fb02d04022a6d3333c40321c094fd473d6764072b?d=identicon)[mabn17](/maintainers/mabn17)

---

Top Contributors

[![mabn17](https://avatars.githubusercontent.com/u/31509124?v=4)](https://github.com/mabn17 "mabn17 (41 commits)")

---

Tags

frameworkmicromvcboilerplateeducation

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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