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

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

infa16/weather
==============

Classes for a weather widget

v3.0(9y ago)020MITPHPPHP &gt;=5.4

Since Oct 8Pushed 9y agoCompare

[ Source](https://github.com/infa16/php-owm-widget)[ Packagist](https://packagist.org/packages/infa16/weather)[ RSS](/packages/infa16-weather/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

CWeather
========

[](#cweather)

[![Travis Badge](https://camo.githubusercontent.com/619b1e1da43a5fa8ae62f7f48a6b50dd4f4afd8f55d27e122349b2c95067d77c/68747470733a2f2f7472617669732d63692e6f72672f696e666131362f7068702d6f776d2d7769646765742e7376673f6272616e63683d6d6173746572 "Build status")](https://camo.githubusercontent.com/619b1e1da43a5fa8ae62f7f48a6b50dd4f4afd8f55d27e122349b2c95067d77c/68747470733a2f2f7472617669732d63692e6f72672f696e666131362f7068702d6f776d2d7769646765742e7376673f6272616e63683d6d6173746572)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/18f0d3fd1913ccaad25da59fff8e6630231d194e60f18c25e9fac1e57fe7ebc7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696e666131362f7068702d6f776d2d7769646765742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://camo.githubusercontent.com/18f0d3fd1913ccaad25da59fff8e6630231d194e60f18c25e9fac1e57fe7ebc7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696e666131362f7068702d6f776d2d7769646765742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)[![Code Coverage](https://camo.githubusercontent.com/be265ffbb92bad90a4c9aaeee5378291809e8d1f8a8f823d10b9e6b405a48364/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696e666131362f7068702d6f776d2d7769646765742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://camo.githubusercontent.com/be265ffbb92bad90a4c9aaeee5378291809e8d1f8a8f823d10b9e6b405a48364/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696e666131362f7068702d6f776d2d7769646765742f6261646765732f636f7665726167652e706e673f623d6d6173746572)

Introduction
------------

[](#introduction)

CWeather is a class for generating a weather-module that can be implemented on whatever website you desire. It can be used with Anax-MVC but it is not dependent on it.

License
-------

[](#license)

This software is free software and carries a MIT license.

How to install
--------------

[](#how-to-install)

To install the package, add the row below to your composer.json file:

```
"require": {
   "infa16/weather": "dev-master"
}

```

To add CWeather, the easiest way is to initialize it when/where you need it:

```
$weather = new \infa16\Weather\CWeather("", "");
$html = $weather.view();

```

How to use
----------

[](#how-to-use)

You have to sign in and get a valid appid from before you can use the service. When you have done that you also need to set the city you want to get the weather-report from.

You can use the module with or without the css-file.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

3

Last Release

3550d ago

Major Versions

v1.0 → v2.02016-10-10

v2.0 → v3.02016-10-11

### Community

Maintainers

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

---

Top Contributors

[![infa16](https://avatars.githubusercontent.com/u/22659841?v=4)](https://github.com/infa16 "infa16 (16 commits)")

---

Tags

microhtmlmoduleeducation

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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