PHPackages                             occ2/progress-bar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. occ2/progress-bar

ActiveLibrary[Framework](/categories/framework)

occ2/progress-bar
=================

Simple progress bar control for Nette Framework. Based on Twitter Bootstrap 3

1.0.2(8y ago)0281[1 PRs](https://github.com/occ2/progress-bar/pulls)MITPHPPHP &gt;=5.6

Since Sep 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/occ2/progress-bar)[ Packagist](https://packagist.org/packages/occ2/progress-bar)[ Docs](https://github.com/OCC2/ProgressBar)[ RSS](/packages/occ2-progress-bar/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

ProgressBar
===========

[](#progressbar)

Simple progress bar control for Nette Framework.

### Requirements:

[](#requirements)

PHP &gt;=5.6 Nette &gt;=2.4 Twitter Bootstrap &gt;=3 (not for version 4) nette.ajax.js

\###Installation: composer require occ2/progress-bar

- copy assets/autorefresh.ajax.js to your\_www\_js\_dir/ext and link it in your page.
- don't forget to have Twitter bootstrap css and js files linked to your page

Usage in presenter
------------------

[](#usage-in-presenter)

```
public function createComponentProgressBar(){
        $m=$this->model;
        $callback = function() use($m){
            return $m->getValue(); //change what you need .. must return integer !!
        };
        $config = [
            "title"=>"BAR TITLE", // bar title
            "minValue"=>0, // minimul value
            "maxValue"=>100,// maximum value
            "valuePrefix"=>"", // text before shown value
            "valueSuffix"=>"%", // text after shown value
            "showValue"=>true, // show value in progress bar?
            "strippedStyle"=>true, // use stripped style
            "animatedStyle"=>true, // use animated bar
            "colorStyle"=>"success" // color style (available info/warning/success/danger)
            "warningThreshold"=>null, // switch to warning style (if null nothing switched)
            "dangerThreshold"=>null // switch to danger style (if null nothing switched)
            ];
        $refreshTime = 3; // time to automatic AJAX refresh (set null if autorefresh disabled)
        return new \OCC2\ProgressBar\ProgressBar("cpuLoad", $callback, $config, $refreshTime);
}
```

\###Usage in latte template

```
{control progressBar}
```

### Usage of autorefresh.ajax.sh

[](#usage-of-autorefreshajaxsh)

1. During $.nette.init() all elements with class .autorefresh is found and read url ant time
2. URL of autorefresh is in data-refresh-url attribute
3. Refresh time is in data-refresh-time attribute

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

3144d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9016f39be2863c9750945593cbfa412a2f2891eb120a251e12b3998058f2429?d=identicon)[packal](/maintainers/packal)

---

Top Contributors

[![xpackal5](https://avatars.githubusercontent.com/u/17193365?v=4)](https://github.com/xpackal5 "xpackal5 (2 commits)")

### Embed Badge

![Health badge](/badges/occ2-progress-bar/health.svg)

```
[![Health](https://phpackages.com/badges/occ2-progress-bar/health.svg)](https://phpackages.com/packages/occ2-progress-bar)
```

###  Alternatives

[nette/nette

👪 Nette Framework - innovative framework for fast and easy development of secured web applications in PHP (metapackage)

1.6k2.8M335](/packages/nette-nette)[contributte/application

Extra contrib to nette/application

352.8M7](/packages/contributte-application)[o5/grido

Grido - DataGrid for Nette Framework

87290.5k4](/packages/o5-grido)[nette/web-project

Nette: Standard Web Project

10991.8k](/packages/nette-web-project)[nasext/dependent-select-box

Dependent Select Box for Nette Framework.

21262.8k2](/packages/nasext-dependent-select-box)[kdyby/autowired

Syntax sugar for working with services in Nette Framework

30885.7k9](/packages/kdyby-autowired)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
