PHP code example of rahulswt7 / yii2-weather-widget
1. Go to this page and download the library: Download rahulswt7/yii2-weather-widget library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rahulswt7 / yii2-weather-widget example snippets
echo rahulswt7\weatherWidgets\WeatherForcast::widget();
echo rahulswt7\weatherWidgets\WeatherForcast::widget([
'currently' => false,
'hourly' => true
]);
echo rahulswt7\weatherWidgets\WeatherForcast::widget([
'currently' => false,
'hourly' => false,
'daily' => true
]);