PHP Classes

PHP CLI Spinner package blog

Recommend this page to a friend!

Latest PHP CLI Spinner package blog posts

  All package blogs All package blogs   PHP CLI Spinner PHP CLI Spinner   Blog PHP CLI Spinner package blog   Post article Post article  

1. How to Implement a PHP CLI Progress Indicator by Animating the Cursors While a PHP Task in Running

Updated on: 2021-07-21

Posted on:

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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   PHP CLI Spinner PHP CLI Spinner   Blog PHP CLI Spinner package blog   Post article Post article