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.1.76(5mo ago)14.4kMITPHP

Since May 21Pushed 5mo 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 1mo ago

READMEChangelog (10)Dependencies (6)Versions (102)Used By (0)

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

[](#console-spinner)

[![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

45

—

FairBetter than 93% of packages

Maintenance72

Regular maintenance activity

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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 ~13 days

Recently: every ~2 days

Total

101

Last Release

165d ago

Major Versions

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

v2.0.10 → v3.0.0-beta302022-06-24

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

v2.0.24 → v3.0.02022-12-29

2.0.x-dev → 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 (60 commits)")

---

Tags

hyperfv3.1

### 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

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[statamic/cli

Statamic CLI Tool

7587.7k](/packages/statamic-cli)[friendsofhyperf/sentry

The sentry component for Hyperf.

1864.6k](/packages/friendsofhyperf-sentry)[leearvin/hyperf-tinker

Powerful REPL for the Hyperf framework.

106.5k](/packages/leearvin-hyperf-tinker)

PHPackages © 2026

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