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

ActiveOctober-plugin[Utility &amp; Helpers](/categories/utility)

rainlab/weather-plugin
======================

Weather plugin for October CMS

31219PHP

Since Jul 16Pushed 9y ago8 watchersCompare

[ Source](https://github.com/rainlab/weather-plugin)[ Packagist](https://packagist.org/packages/rainlab/weather-plugin)[ RSS](/packages/rainlab-weather-plugin/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Weather plugin
==============

[](#weather-plugin)

The plugin was created for the [php\[tek\] 2014](https://tek.phparch.com/) conference.

The weather information is loaded from [Open Weather Map](http://openweathermap.org/API). For the simplicity the country list in the Inspector dropdown menu is limited with United States, Canada and Australia, but if you edit the component definition in the page code manually you can set any country and state.

The plugin defines the Weather component that have four properties:

- country - two-letter country code, the default value us "us"
- state - two-letter state code, the default value us "dc"
- city - city name, the default value is "Washington"
- units - units for the temperature and wind speed, possible values are "metric" and "imperial", the default value is "imperial".

To use the component, drop it on a page and use the `{% component 'weather' %}` tag anywhere in the page code to render it. Note that the component injects a CSS file reference to a page to style the widget. It's optional. If you want to use it, use the `{% styles %}` tag in the HEAD section. The next example shows a simplest page code that uses the weather component:

```
title = "Weather"
url = "/weather"

[weather]
units = "metric"
==

        Weather component example
        {% styles %}

        {% component 'weather' %}

```

[![back-end preview](https://camo.githubusercontent.com/e63205b32cc7ff1fb6958ccdb80781bda0bb1ea5604f43c713a2e86bc3b60233/687474703a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f37333637333130302f53637265656e73686f74732f707873372e706e67)](https://camo.githubusercontent.com/e63205b32cc7ff1fb6958ccdb80781bda0bb1ea5604f43c713a2e86bc3b60233/687474703a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f37333637333130302f53637265656e73686f74732f707873372e706e67)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

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

---

Top Contributors

[![alekseybobkov](https://avatars.githubusercontent.com/u/481606?v=4)](https://github.com/alekseybobkov "alekseybobkov (3 commits)")[![acasar](https://avatars.githubusercontent.com/u/6329543?v=4)](https://github.com/acasar "acasar (2 commits)")[![daftspunk](https://avatars.githubusercontent.com/u/1392869?v=4)](https://github.com/daftspunk "daftspunk (2 commits)")

### Embed Badge

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

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

###  Alternatives

[ivaynberg/select2

Select2 is a jQuery based replacement for select boxes.

25.9k443.8k5](/packages/ivaynberg-select2)[brick/phonenumber

Phone number library

4267.5M57](/packages/brick-phonenumber)[edvinaskrucas/settings

Persistent settings package for Laravel framework.

22383.7k1](/packages/edvinaskrucas-settings)

PHPackages © 2026

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