PHPackages                             icanhazstring/symfony-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. icanhazstring/symfony-console-spinner

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

icanhazstring/symfony-console-spinner
=====================================

Custom symfony progressbar spinner

1.1.1(2y ago)3061.0k↓12.5%51MITPHPPHP ^7.3 || ^8.0

Since Feb 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/icanhazstring/symfony-console-spinner)[ Packagist](https://packagist.org/packages/icanhazstring/symfony-console-spinner)[ RSS](/packages/icanhazstring-symfony-console-spinner/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (1)

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

[](#symfony-console-spinner)

Custom symfony progressbar with a spinner.

I wanted a progressbar displaying a long running task like waiting for an external resource to be available. This is where I stumbled upon [alecrabbit/php-cli-snake](https://github.com/alecrabbit/php-cli-snake).

I tried to mimic the the animation using symfony/console and this is the result:

[![example of multiple progress bars with this spinner component](docs/spinnerprogress.gif)](docs/spinnerprogress.gif)

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

[](#installation)

Use composer to require the small package

```
composer require icanhazstring/symfony-console-spinner
```

Usage
-----

[](#usage)

To use the spinner, just instantiate the `SpinnerProgress` like the default `ProgressBar` from symfony giving it the `OutputInterface` and the maximum count of items to process:

```
public function execute(OutputInterface $output, InputInterface $input)
{
    $spinner = new SpinnerProgress($output, 100);

    for($i = 0; $i < 100; $i++) {

        usleep(1000);

        $spinner->advance();

    }

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

You can also get the underlying `ProgressBar` instance if you want to change anything, for example adding the elapsed time to the output format:

```
$spinner = new SpinnerProgress($output, 100);
$spinner->getProgressBar()->setFormat('%bar% (%elapsed:6s%) %message%');
```

License
-------

[](#license)

This package is released under the [MIT license](LICENSE).

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~300 days

Recently: every ~352 days

Total

6

Last Release

782d ago

PHP version history (2 changes)1.0.0PHP ^7.3

1.0.2PHP ^7.3 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![icanhazstring](https://avatars.githubusercontent.com/u/883543?v=4)](https://github.com/icanhazstring "icanhazstring (6 commits)")[![GuySartorelli](https://avatars.githubusercontent.com/u/36352093?v=4)](https://github.com/GuySartorelli "GuySartorelli (3 commits)")[![ahmadmayahi](https://avatars.githubusercontent.com/u/1689910?v=4)](https://github.com/ahmadmayahi "ahmadmayahi (1 commits)")

---

Tags

consolesymfonyspinner

### Embed Badge

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

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

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[contributte/console

Best Symfony Console for Nette Framework

983.6M49](/packages/contributte-console)[coresphere/console-bundle

This bundle allows you accessing the symfony2 console via your browser

146337.3k5](/packages/coresphere-console-bundle)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)[phlib/console-process

Console implementation.

1833.5k2](/packages/phlib-console-process)

PHPackages © 2026

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