dev-master
9999999-devAutomatic page load progress bar. The PACE plugin integration for Yii2 Framework
BSD-3-Clause
The Requires
by Oleksandr Mykhailiuta
by HubSpot
yii2 loading pace
Automatic page load progress bar. The PACE plugin integration for Yii2 Framework
Automatic page load progress bar widget for Yii2 Framework. This is a PACE wrapper., (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require ercling/yii2-pace "*"
or add, (*4)
"ercling/yii2-pace": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply put in your view, (*6)
<?=ercling\pace\PaceWidget::widget()?>
If you would like to make some tweaks you can use color, theme and options like this:, (*7)
<?=ercling\pace\PaceWidget::widget([ 'color'=>'red', 'theme'=>'corner-indicator', 'options'=>[ 'ajax'=>['trackMethods'=>['GET','POST']] ] ])?>
You can preview themes and colors here and here., (*8)
For list of options see documentation or this source file., (*9)
Automatic page load progress bar. The PACE plugin integration for Yii2 Framework
BSD-3-Clause
yii2 loading pace