ercling/yii2-pace

Automatic page load progress bar. The PACE plugin integration for Yii2 Framework

Installs: 11 138

Dependents: 1

Suggesters: 0

Security: 0

Stars: 4

Watchers: 3

Forks: 3

Open Issues: 1

Language:CSS

Type:yii2-extension

dev-master 2014-10-31 08:51 UTC

This package is not auto-updated.

Last update: 2024-05-07 00:29:24 UTC


README

Automatic page load progress bar widget for Yii2 Framework. This is a PACE wrapper.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require ercling/yii2-pace "*"

or add

"ercling/yii2-pace": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply put in your view

<?=ercling\pace\PaceWidget::widget()?>

If you would like to make some tweaks you can use color, theme and options like this:

<?=ercling\pace\PaceWidget::widget([
    'color'=>'red',
    'theme'=>'corner-indicator',
    'options'=>[
        'ajax'=>['trackMethods'=>['GET','POST']]
    ]
])?>

You can preview themes and colors here and here.

For list of options see documentation or this source file.