PHPackages                             asti/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. asti/weather

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

asti/weather
============

A module for accessing the weather module.

1.2.0(5y ago)022MITPHP

Since Apr 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/AsaTirsen/weather)[ Packagist](https://packagist.org/packages/asti/weather)[ RSS](/packages/asti-weather/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (6)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/dd65b996e56e64d54db297e896aade9562830a4a93b4150b06c13fdc1cb3a999/68747470733a2f2f7472617669732d63692e6f72672f41736154697273656e2f776561746865722e7376673f6272616e63683d6d61696e)](https://travis-ci.org/AsaTirsen/weather)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/370b88ce734b9ca47a1de96b81de6a14a51f86b5e0bc15df09d7b567945dbe1e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f41736154697273656e2f776561746865722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/AsaTirsen/weather/?branch=main)[![Code Coverage](https://camo.githubusercontent.com/ae8b4893e2d7cc348863e864885d484b76d2d5430a2e9041b28f69d2c75ec91d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f41736154697273656e2f776561746865722f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/AsaTirsen/weather/?branch=main)[![Build Status](https://camo.githubusercontent.com/2b12568684b45f817b7c714a9e88f5f53cfcd881491ebfa9ef12fda2b420f580/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f41736154697273656e2f776561746865722f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/AsaTirsen/weather/build-status/main)[![Code Intelligence Status](https://camo.githubusercontent.com/e744a5fa44bfae58a5d9f88739564b541c369cbc51221ca4fd43237ebf214fd3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f41736154697273656e2f776561746865722f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d61696e)](https://scrutinizer-ci.com/code-intelligence)

Anax module for weather forecast and history
============================================

[](#anax-module-for-weather-forecast-and-history)

This module can be incorporated with the [Anax framework](https://github.com/canax) to provide a service that checks weahter forecast and historical weather data based on ip-adress. The module was created as a part of the course Webbaserade ramverk och designmönster, Blekinge Tekniska Högskola.

To install
==========

[](#to-install)

In your composer.json do:

```
    composer require asti/weather

```

Integrate the module
====================

[](#integrate-the-module)

From the root of your Anax repo run:
------------------------------------

[](#from-the-root-of-your-anax-repo-run)

#### Manually:

[](#manually)

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

    rsync -av vendor/asti/weather/view ./

    rsync -av vendor/asti/weather/src ./

    rsync -av vendor/asti/weather/test ./

```

#### Or simply:

[](#or-simply)

```
    bash vendor/asti/weather/.anax/scaffold/postprocess.d/100_weather.bash

```

Add API-key
-----------

[](#add-api-key)

version 1.1.0 You need to use your own API key from [Open Weather](https://openweathermap.org/api). Add you key in the config/weather.php file as a value to the key "API-key". You need to use your own API key from [IP stack](http://api.ipstack.com). Add you key in the config/location.php file as a value to the key "API-key".

version 1.2.0 You need to use your own API key from [Open Weather](https://openweathermap.org/api). You need to use your own API key from [IP stack](http://api.ipstack.com).

Create a {your root directory}/.env file and add your key value pairs like in the example:

LOCATIONAPIKEY={your location api key}
WEATHERAPIKEY={your weather api key}

Don't forget to att your .env to .gitignore

#### Update your config/page.php

[](#update-your-configpagephp)

The module uses a very basic page layout anax/v2/layout/default. This can be changed in config/page.php to anax/v2/layout/dbwebb\_se.

#### Update your navigation:

[](#update-your-navigation)

Add IP and Weather to your navbar via config/navbar/header.php and via config/navbar/responsive.php

You will need to insert the following lines of code into the items-key in the above files.

```
    [
        "text" => "Väder",
        "url" => "weather",
        "title" => "Få väderprognos",
    ],
    [
        "text" => "VäderAPI",
        "url" => "weather_api",
        "title" => "Få väderprognos",
    ],

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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 ~4 days

Total

6

Last Release

1868d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42939140?v=4)[AsaTirsen](/maintainers/AsaTirsen)[@asatirsen](https://github.com/asatirsen)

---

Top Contributors

[![asatirsen](https://avatars.githubusercontent.com/u/42939140?v=4)](https://github.com/asatirsen "asatirsen (113 commits)")

### Embed Badge

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

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)[phlak/directory-lister

PHP directory lister

2.5k1.4k](/packages/phlak-directory-lister)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

43785.5k4](/packages/lullabot-drainpipe)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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