mehrdadakbari / yii2-time-of-prayer
Show time of prayer for cities of iran country.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-01-12 11:52:32 UTC
README
Show time of prayer for cities of iran country.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist mehrdadakbari/yii2-time-of-prayer "*"
or add
"mehrdadakbari/yii2-time-of-prayer": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \mehrdadakbari\prayerTime\PrayerTime::widget(); ?> and insert into the controller public function actions() { return [ . . . 'prayer'=>[ 'class' => 'mehrdadakbari\prayerTime\PrayerAction' ] ]; }
sample
<?= prayerTime\PrayerTime::widget([ 'method'=>'Tehran', 'timeFormat'=>'24h', 'city'=>'دهلران', 'province'=>'ايلام' ]); ?>