jpuck/php-bootstrap-progress-bar

Create static Bootstrap Progress Bars using PHP.

1.2.1 2016-12-31 04:26 UTC

This package is not auto-updated.

Last update: 2020-08-07 20:28:49 UTC


README

Create static Bootstrap Progress Bars using PHP.

Installation

Install into your project using composer.

composer require jpuck/php-bootstrap-progress-bar

Usage

See example.php for usage.

Views

Additional twig views may be created and added to the views directory and referenced using the render method. For example, myview.twig.html can be used like:

echo $progressbar->render('myview');

WordPress sans Bootstrap

If you're using WordPress without Bootstrap, then you can add the stylesheet to the <head> section with the wp_head action hook.

add_action( 'wp_head', array( ProgressBar::class, 'wp_head' ) );