LARAVEL-CONSOLE-SPINNER(1)
NAME
laravel-console-spinner — Customized loading ⌛ spinner for Laravel Artisan Console.
SYNOPSIS
INFO
76 stars
3 forks
0 views
DESCRIPTION
Customized loading ⌛ spinner for Laravel Artisan Console.
README
Laravel Console Spinner
Laravel Console Spinner was created by Rahul Dey. It is just a custom Progress Bar inspired by icanhazstring/symfony-console-spinner.
Installation
Requires PHP 7.3+
Via Composer:
composer require rahul900day/laravel-console-spinner
You can publish the config file with:
php artisan vendor:publish --tag=console-spinner-config
This is the contents of the published config file:
return [
'chars' => ['⠏', '⠛', '⠹', '⢸', '⣰', '⣤', '⣆', '⡇'],
];
Usage
class SimpleLaravelCommand extends Command { /** * 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...');
Licence
This package is released under the MIT license.
SEE ALSO
neovim(1)— Hyperextensible Vim-based text editor — the future of Vimtmux(1)— Terminal multiplexer — split panes, detach sessions, pair programhyperfine(1)— A command-line benchmarking tool — measure execution timestokei(1)— Count lines of code quickly — supports 150+ languagescftunnel(1)— 全协议内网穿透 CLI — Cloud 模式免费 HTTP/WS 穿透 + Relay 模式自建中继 TCP/UDP 全协议 | Cloudflare Tunnel + frp 双引擎
clihub3/4/2026LARAVEL-CONSOLE-SPINNER(1)