paskuale75 / yii2-meteo-forcast
Yii2 widget displays weather forcast
Package info
github.com/paskuale75/yii2-meteo-forcast
Type:yii2-extension
pkg:composer/paskuale75/yii2-meteo-forcast
dev-main
2021-05-08 21:16 UTC
Requires
- php: >=7.2
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-03-09 07:42:33 UTC
README
read weather from external source api
This widget has 3 nodes of data.
- Currently
- Hourly
- Daily
How to use it.
Just add below lines in your composer.json file
"paskuale75/yii2-weather-forcast-widget" : "dev-master"
Open your terminal and run command composer install
or
composer require rahulswt7/yii2-weather-widget
After installation
Initially Currently weatherdata will show.
<?php echo paskuale75\weather\WeatherForcast::widget(); ?>
To show hourly weather report
<?php echo paskuale75\weather\WeatherForcast::widget([ 'currently' => false, 'hourly' => true ]); ?>
To show daily weather report
<?php echo paskuale75\weather\WeatherForcast::widget([ 'currently' => false, 'hourly' => false, 'daily' => true ]); ?>