Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2021-06-23 (2 months ago) | | Not enough user ratings | | Total: 56 | | All time: 10,006 This week: 181 |
|
Description | | Author |
This package can make the cursor spin in the command line shells.
It can start a parallel process that will change the character that appears in the current cursor position in the command-line shell to make it appear as an animated cursor.
The package provides theme classes that implement different styles of animations to be used as characters that appear spinning near the cursor. Innovation Award
June 2021
Number 3 |
Sometimes applications need to execute tasks that take a long time to finish. It is always good to provide feedback to the users to let them know what is happening, avoiding that the users become too anxious.
For console-based applications, usually, a cursor may appear blinking, but that does not give feedback on whether the current application is running well.
This package implements a better solution by showing the cursor changing its character, so it appears to be animated. This can give the users a better feeling by letting them know that the application is running.
The package implements a solution that uses a parallel process to animate the cursor character, so the application does not have to stop its main job to update the cursor animation.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 7x |
|
Details
PHP Spinner
> Elegant spinner for interactive CLI apps.
>
> Alternative for https://github.com/sindresorhus/elegant-spinner
$result = \IsaEken\Spinner\Spinner::run(function () {
\IsaEken\Spinner\Spinner::setTitle('Calculating...');
$a = 1;
$b = 2;
$c = $a + $b;
\IsaEken\Spinner\Spinner::setTitle('Waiting...');
sleep($c);
return $c;
});
echo "The result is: $result!";
Installation
You can install using composer.
composer require isaeken/spinner
License
The MIT License (MIT). Please see License File for more information.
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.