Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thtmorais/yii2-pace
PACE (Progress Automatically Certain to Entertain) for Yii PHP Framework
https://github.com/thtmorais/yii2-pace
load load-progress loading pace progress yii-extension yii-php-framework yii2
Last synced: 11 days ago
JSON representation
PACE (Progress Automatically Certain to Entertain) for Yii PHP Framework
- Host: GitHub
- URL: https://github.com/thtmorais/yii2-pace
- Owner: thtmorais
- License: mit
- Created: 2019-03-18T18:40:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T14:03:00.000Z (over 3 years ago)
- Last Synced: 2024-10-07T12:39:36.020Z (about 1 month ago)
- Topics: load, load-progress, loading, pace, progress, yii-extension, yii-php-framework, yii2
- Language: PHP
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
PACE (Progress Automatically Certain to Entertain) for Yii PHP Framework
=========================================================================
PACE (Progress Automatically Certain to Entertain) - Automatic page load progress bar for Yii PHP FrameworkInstallation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
composer require thtmorais/yii2-pace "*"
```or add
```
"thtmorais/yii2-pace": "*"
```to the require section of your `composer.json` file.
Usage
-----Once the extension is installed, simply use it in your code by :
```php
```
or
```php
= \thtmorais\pace\Pace::widget() ?>
```We recommend using in the `layouts/main.php` file. Or if you prefer in each view file with their respective settings.
Configuration
-------------By default the PACE comes configured with blue color and animation minimal.
You can add general rule for all views in the `config/params.php` file as follows:
```php
[
'color' => 'blue',
'theme' => 'minimal',
'options' => []
]
];
?>
```or individually in each view:
```php
'red',
'theme'=>'corner-indicator',
'options'=>[]
]);?>
```You can preview **themes** and **colors** [here](https://codebyzach.github.io/pace/).