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

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

chbl/weather
============

Module for the weatherservice.

v2.0.3(5y ago)06MITPHPPHP &gt;=7.2

Since Nov 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/christoffer-bolin/weathermodule)[ Packagist](https://packagist.org/packages/chbl/weather)[ RSS](/packages/chbl-weather/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (6)Versions (14)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/09ab3afe6e764f758271f7c5f1417ad198b97d758162400269e966e9f334a229/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6368726973746f666665722d626f6c696e2f776561746865726d6f64756c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/christoffer-bolin/weathermodule/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/8dbb2f85e1f52cc667ba122be76f3004dfdbca6dfbcc9e841c4af0e29e050750/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6368726973746f666665722d626f6c696e2f776561746865726d6f64756c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/christoffer-bolin/weathermodule/?branch=master)[![Build Status](https://camo.githubusercontent.com/7fc057100851b650f7fad4bbdc232704be37f5c1c5baa4dece4e9416e9bd75c7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6368726973746f666665722d626f6c696e2f776561746865726d6f64756c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/christoffer-bolin/weathermodule/build-status/master)[![Build Status](https://camo.githubusercontent.com/1dc853a175a2ab572ad56ee727c51da74c7bd2318641e761c9938fe27d8b93cf/68747470733a2f2f7472617669732d63692e636f6d2f6368726973746f666665722d626f6c696e2f776561746865726d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/christoffer-bolin/weathermodule)[![CircleCI](https://camo.githubusercontent.com/2efd1a4f8acdb603fa2136ee22b7a257540f90cfd8c5b2a6674890884c722cf0/68747470733a2f2f636972636c6563692e636f6d2f67682f636972636c6563692f636972636c6563692d646f63732e7376673f7374796c653d737667)](https://circleci.com/gh/christoffer-bolin/weathermodule)

Weather module for Anax (used in the ramverk1 repo)
---------------------------------------------------

[](#weather-module-for-anax-used-in-the-ramverk1-repo)

A module to use in the course ramverk1, using PHP framework Anax.

### Installation

[](#installation)

`composer require chbl/weather`

`make install

make install test`

To run the tests use `make test`, but please remember to add you APIkeys first.

Instructions further down!

### Copy configuration

[](#copy-configuration)

rsync -av vendor/chbl/weather/config/ config/

rsync -av vendor/chbl/weather/src/ src/

rsync -av vendor/chbl/weather/test/ test/

rsync -av vendor/chbl/weather/view/ view/

### Add your personal API keys

[](#add-your-personal-api-keys)

Create the files `weatherapi.php` and `apikey.php` in the config/ folder,

paste in the following in weatherapi.php and change xxx to your apikeys.

`&lt;?php

return \[

```
"weatherKeyHolder" => [

    "weatherKey" => "xxx",

    "mapboxKey" => "xxx"

]

```

\];`

For your GetGeolocation API, do the same but use the following code, and paste into `apikey.php`,

`&lt;?php

return \[ "keyHolder" =&gt; \[ "apiKey" =&gt; "x" \] \]; `

### Structure

[](#structure)

The weather service will be available at `/weather`and the ip service will be available at `/validate`

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

13

Last Release

2028d ago

Major Versions

v1.0.10 → v2.0.12020-12-04

PHP version history (2 changes)v1.0.3PHP &gt;=7.4

v1.0.9PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/94eda5dc68d187390aeb585705041024838ec5e2c486bfa8e58cd1c307020179?d=identicon)[christofferbolin](/maintainers/christofferbolin)

---

Top Contributors

[![christoffer-bolin](https://avatars.githubusercontent.com/u/45626337?v=4)](https://github.com/christoffer-bolin "christoffer-bolin (26 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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