PHPackages                             friendsofhyperf/console-spinner - 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. [CLI &amp; Console](/categories/cli)
4. /
5. friendsofhyperf/console-spinner

ActiveLibrary[CLI &amp; Console](/categories/cli)

friendsofhyperf/console-spinner
===============================

The progress bar component For Hyperf.

v3.2.1(3w ago)14.5kMITPHP

Since May 21Pushed 2w ago1 watchersCompare

[ Source](https://github.com/friendsofhyperf/console-spinner)[ Packagist](https://packagist.org/packages/friendsofhyperf/console-spinner)[ Fund](https://hdj.me/sponsors/)[ GitHub Sponsors](https://github.com/huangdijia)[ RSS](/packages/friendsofhyperf-console-spinner/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (12)Versions (106)Used By (0)

console-spinner
===============

[](#console-spinner)

[中文说明](README_CN.md)

[![Latest Stable Version](https://camo.githubusercontent.com/f672d00a5b1736a0fec0550ab760f50bb13707ea3e49c1a1e21244886a0af3b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667269656e64736f666879706572662f636f6e736f6c652d7370696e6e6572)](https://packagist.org/packages/friendsofhyperf/console-spinner)[![Total Downloads](https://camo.githubusercontent.com/b84e232172eae92c5b98e64d0268b59d4c41a29f60a5454bd331fe27d9a1b43a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667269656e64736f666879706572662f636f6e736f6c652d7370696e6e6572)](https://packagist.org/packages/friendsofhyperf/console-spinner)[![License](https://camo.githubusercontent.com/503ab2981d28a6dedaa7a62cae78226c6cb7566b97e95547d3a82f50d9582f58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f667269656e64736f666879706572662f636f6e736f6c652d7370696e6e6572)](https://github.com/friendsofhyperf/console-spinner)

The progress bar component For Hyperf.

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

[](#installation)

```
composer require friendsofhyperf/console-spinner
```

Publish
-------

[](#publish)

- Optional

```
php bin/hyperf.php vendor:publish friendsofhyperf/console-spinner
```

Usage
-----

[](#usage)

```
class FooCommand extends Command
{
    use Spinnerable;

    /**
     * Execute the console command.
     *
     * @return void
     */
    public function handle()
    {
        $spinner = $this->spinner($users->count());
        $spinner->setMessage('Loading...');
        $spinner->start();

        foreach ($users as $user) {
            // Do your stuff...

            $spinner->advance();
        }

        $spinner->finish();
    }
}
```

The $spinner is compatible with Symfony ProgressBar, so you can run any method of this class.

Or you can also use with withSpinner method by giving an iterable.

```
$this->withSpinner(User::all(), function($user) {
    // Do your stuff with $user
}, 'Loading...');
```

Contact
-------

[](#contact)

- [Twitter](https://twitter.com/huangdijia)
- [Gmail](mailto:huangdijia@gmail.com)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

51

↑

FairBetter than 95% of packages

Maintenance96

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.5% 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 ~14 days

Recently: every ~47 days

Total

105

Last Release

24d ago

Major Versions

v2.0.6 → v3.0.0-beta122022-06-14

v2.0.12 → v3.0.0-beta242022-06-24

v2.0.19 → v3.0.0-rc.162022-09-21

v2.0.24 → v3.0.02022-12-29

v2.0.28 → v3.0.142023-02-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8337659?v=4)[Deeka Wong](/maintainers/huangdijia)[@huangdijia](https://github.com/huangdijia)

---

Top Contributors

[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (64 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")

---

Tags

hyperfv3.2

### Embed Badge

![Health badge](/badges/friendsofhyperf-console-spinner/health.svg)

```
[![Health](https://phpackages.com/badges/friendsofhyperf-console-spinner/health.svg)](https://phpackages.com/packages/friendsofhyperf-console-spinner)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54743.1k4](/packages/jolicode-castor)[whatsdiff/whatsdiff

See what's changed in your project's dependencies

771.2k](/packages/whatsdiff-whatsdiff)[friendsofhyperf/sentry

The sentry component for Hyperf.

1974.5k](/packages/friendsofhyperf-sentry)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)

PHPackages © 2026

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