alecrabbit / php-cli-snake
Lightweight cli spinner with zero dependencies
Fund package maintenance!
Patreon
Installs: 193 035
Dependents: 6
Suggesters: 0
Security: 0
Stars: 28
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- php: ^7.3 || ^8.0
Requires (Dev)
- nunomaduro/collision: ^4.2
- phpunit/phpunit: ^9.5
- react/event-loop: ^1.1
- symfony/var-dumper: ^5.1
This package is auto-updated.
Last update: 2024-12-05 20:34:17 UTC
README
Lightweight cli snake spinner with zero dependencies
Zero dependencies
"require": {
"php": "^7.3 || ^8.0"
}
Installation
$ composer require alecrabbit/php-cli-snake
Quickstart
require_once __DIR__ . '/../vendor/autoload.php'; use AlecRabbit\Snake\Spinner; use React\EventLoop\Factory; $s = new Spinner(); $loop = Factory::create(); $loop->addPeriodicTimer($s->interval(), static function () use ($s) { $s->spin(); }); $s->begin(); $loop->run(); $s->end();
Usage
See examples