PHP code example of alexeyco / spinner

1. Go to this page and download the library: Download alexeyco/spinner library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alexeyco / spinner example snippets


$spinner = new Spinner\Spinner(Spinner\DOTS);

for ($i = 1; $i < 10000; $i++) {
    $spinner->tick('Example');

    // Execute unpredictable task, for example:
    usleep(80 * 1000);
}