PHPackages                             dynamikaweb/yii2-hgbrasil-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. dynamikaweb/yii2-hgbrasil-weather

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

dynamikaweb/yii2-hgbrasil-weather
=================================

HGBrasil api, weather, previsao do tempo

v1.0.0(4y ago)076BSD-3-ClausePHPPHP &gt;=7.4.0

Since Jun 9Pushed 4y agoCompare

[ Source](https://github.com/dynamikaweb/yii2-hgbrasil-weather)[ Packagist](https://packagist.org/packages/dynamikaweb/yii2-hgbrasil-weather)[ RSS](/packages/dynamikaweb-yii2-hgbrasil-weather/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

dynamikaweb/yii2-hgbrasil-weather
=================================

[](#dynamikawebyii2-hgbrasil-weather)

[![php version](https://camo.githubusercontent.com/6f049b57b1409a2e69788da01e050f572bfa76ead8900c2bea2e92bd7b9d4075/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64796e616d696b617765622f796969322d686762726173696c2d77656174686572)](https://camo.githubusercontent.com/6f049b57b1409a2e69788da01e050f572bfa76ead8900c2bea2e92bd7b9d4075/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64796e616d696b617765622f796969322d686762726173696c2d77656174686572)[![pkg version](https://camo.githubusercontent.com/359df2131d7cabaa11dc4f8d20bd1bf2a0eee7210cabb9cbd3cf35ba898d2880/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64796e616d696b617765622f796969322d686762726173696c2d77656174686572)](https://camo.githubusercontent.com/359df2131d7cabaa11dc4f8d20bd1bf2a0eee7210cabb9cbd3cf35ba898d2880/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64796e616d696b617765622f796969322d686762726173696c2d77656174686572)[![license](https://camo.githubusercontent.com/c1b21131e44fac31138f651570a2b7042bbc98916201a91b6ac96b7d8928a3d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64796e616d696b617765622f796969322d686762726173696c2d77656174686572)](https://camo.githubusercontent.com/c1b21131e44fac31138f651570a2b7042bbc98916201a91b6ac96b7d8928a3d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64796e616d696b617765622f796969322d686762726173696c2d77656174686572)[![quality](https://camo.githubusercontent.com/58f82f5073b463661591ed6ce3ac995e6284e7c4db7238349862da7794bd48e0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f64796e616d696b617765622f796969322d686762726173696c2d77656174686572)](https://camo.githubusercontent.com/58f82f5073b463661591ed6ce3ac995e6284e7c4db7238349862da7794bd48e0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f64796e616d696b617765622f796969322d686762726173696c2d77656174686572)[![build](https://camo.githubusercontent.com/c1be090d3fb91d2274f4c7f52bfb15ea8efc552e809cb5197e4a205a0b98e0ca/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f64796e616d696b617765622f796969322d686762726173696c2d77656174686572)](https://camo.githubusercontent.com/c1be090d3fb91d2274f4c7f52bfb15ea8efc552e809cb5197e4a205a0b98e0ca/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f64796e616d696b617765622f796969322d686762726173696c2d77656174686572)

Descripton
----------

[](#descripton)

This Widget was based on the [HG Weather API](https://hgbrasil.com/status/weather), to generate your access key and check the query parameters, see the [API documentation](https://console.hgbrasil.com/documentation/weather)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ composer require dynamikaweb/yii2-hgbrasil-weather "*"
```

or add

```
"dynamikaweb/yii2-hgbrasil-weather": "*"
```

to the `require` section of your `composer.json` file.

---

[![dynamika soluções web](https://avatars.githubusercontent.com/dynamikaweb?size=12)](https://dynamika.com.br)This project is under [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) license.

Usage
-----

[](#usage)

Add it to your components

```
'components' => [
    ...
    'weather' => [
        'class' => \dynamikaweb\weather\components\WeatherApi::className(),
        'key' => 'Your key, you can get it from HG Brasil',
        'parameters' => [
            'city_name' => 'Canoas,RS',
        ]
    ],
    ...
]
```

for different parameters, see [API documentation](https://console.hgbrasil.com/documentation/weather)

create widget

```
    use dynamikaweb\weather\Weather;
    ...
    echo Weather::widget([
        'days' = 2,
        'icons' = Weather::ICONS_DEFAULT,
    ]);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

1798d ago

### Community

Maintainers

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

---

Top Contributors

[![robsondrs](https://avatars.githubusercontent.com/u/53342735?v=4)](https://github.com/robsondrs "robsondrs (2 commits)")

---

Tags

yii2yiidynamika

### Embed Badge

![Health badge](/badges/dynamikaweb-yii2-hgbrasil-weather/health.svg)

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

###  Alternatives

[kop/yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget

180706.5k10](/packages/kop-yii2-scroll-pager)[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)

PHPackages © 2026

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