PHPackages                             yxh/php-progressbar - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yxh/php-progressbar

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yxh/php-progressbar
===================

php进度条

1.0.0(6y ago)122BSD-3-ClausePHP

Since Oct 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yaoxiaohang/php-progressbar)[ Packagist](https://packagist.org/packages/yxh/php-progressbar)[ RSS](/packages/yxh-php-progressbar/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP 命令行进度条
==========

[](#php-命令行进度条)

PHP ProgressBar

使用 Example
----------

[](#使用-example)

```
$count = 100;
//创建进度条
$progress = ProgressBar::createProgressBar($count);
//设置进度条宽度 单位 一格
//$progress->setBarWidth(50);

//简洁模式
//$progress->setFormatType(ProgressBar::FORMAT_TYPE_NORMAL);

//自定义内容
//$progress->setCustomFormat('%title% %current%/%max% [%bar%] %percent:3s%%  时间:%elapsed%/%estimated% 速度:%speed% 内存:%memory:6s%');
//$progress->setMessage('title','heihei');

for ($i = 0; $i < $count; $i ++){
    sleep(1);
    //下一步
//    $progress->next(2);
    $progress->next();
}
//结束
$progress->finish();
```

Requirements
------------

[](#requirements)

- PHP version 5.4.0 or higher

Installation
------------

[](#installation)

### Using Composer

[](#using-composer)

Get the package:

```
$ composer require yxh/php-progressbar

```

### Manual Installation

[](#manual-installation)

Clone git repository:

```
$ git clone https://github.com/yaoxiaohang/php-progressbar.git

```

or download the package at

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2398d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26790636?v=4)[yxh](/maintainers/yaoxiaohang)[@yaoxiaohang](https://github.com/yaoxiaohang)

---

Top Contributors

[![yaoxiaohang](https://avatars.githubusercontent.com/u/26790636?v=4)](https://github.com/yaoxiaohang "yaoxiaohang (9 commits)")

---

Tags

php

### Embed Badge

![Health badge](/badges/yxh-php-progressbar/health.svg)

```
[![Health](https://phpackages.com/badges/yxh-php-progressbar/health.svg)](https://phpackages.com/packages/yxh-php-progressbar)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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