All Projects → alecrabbit → php-cli-snake

alecrabbit / php-cli-snake

Licence: MIT license
Lightweight cli spinner with zero dependencies

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to php-cli-snake

spinner
Progress indicators for command line Clojure apps, including support for indeterminate and determinate tasks.
Stars: ✭ 32 (+28%)
Mutual labels:  spinner, ansi
Php Console Spinner
Colorful highly configurable spinner for php cli applications (suitable for async apps)
Stars: ✭ 225 (+800%)
Mutual labels:  reactphp, spinner
wc
A simple spinning loading web component based on the one from macOS
Stars: ✭ 47 (+88%)
Mutual labels:  spinner
attic
A collection of personal tiny tools - mirror of https://gitlab.com/hydrargyrum/attic
Stars: ✭ 17 (-32%)
Mutual labels:  ansi
gdb-dashboard
Modular visual interface for GDB in Python
Stars: ✭ 8,699 (+34696%)
Mutual labels:  ansi
edi-json
Serializing EDI as JSON
Stars: ✭ 73 (+192%)
Mutual labels:  ansi
ansilove-php
A set of tools to convert ANSi and artscene related file formats into PNG images
Stars: ✭ 56 (+124%)
Mutual labels:  ansi
ansiart2utf8
Processes legacy BBS-style ANSI art (ACiDDraw, PabloDraw, etc.) to UTF-8. Escape codes and line endings are processed for terminal friendliness.
Stars: ✭ 32 (+28%)
Mutual labels:  ansi
durdraw
Animated Unicode, ANSI and ASCII Art Editor for Linux/Unix/macOS
Stars: ✭ 55 (+120%)
Mutual labels:  ansi
ansisvg
Convert ANSI to SVG
Stars: ✭ 41 (+64%)
Mutual labels:  ansi
KVSpinnerView
KVSpinnerView is highly customizable progress HUD
Stars: ✭ 37 (+48%)
Mutual labels:  spinner
reactphp-child-process-promise
No description or website provided.
Stars: ✭ 12 (-52%)
Mutual labels:  reactphp
php-react-memcached
Asynchronous Memcached PHP Client for ReactPHP ecosystem
Stars: ✭ 27 (+8%)
Mutual labels:  reactphp
cpp-indicators
A very simple, easy-to-use, and single-header-only C++ library for console based indicators (loading spinners)
Stars: ✭ 13 (-48%)
Mutual labels:  spinner
p8-programming-fonts
A collection of fonts I've modified for PICO-8 programming.
Stars: ✭ 67 (+168%)
Mutual labels:  ansi
strings-truncation
Truncate strings with fullwidth characters and ANSI codes.
Stars: ✭ 45 (+80%)
Mutual labels:  ansi
spin
A very simple spinner for cli Go apps
Stars: ✭ 70 (+180%)
Mutual labels:  spinner
nanospinner
🌀 The simplest and tiniest terminal spinner for Node.js
Stars: ✭ 108 (+332%)
Mutual labels:  spinner
reactphp-parallel
ReactPHP bindings around ext-parallel
Stars: ✭ 15 (-40%)
Mutual labels:  reactphp
terminal-style
🎨 Return your terminal message in style! Change the text style, text color and text background color from the terminal, console or shell interface with ANSI color codes. Support for Laravel and Composer.
Stars: ✭ 16 (-36%)
Mutual labels:  ansi

🐍 PHP CLI Snake

Lightweight cli snake spinner with zero dependencies

PHP Version Build Status Appveyor Status Scrutinizer Code Quality Code Coverage Total Downloads

Latest Stable Version Packagist Pre Release Version Latest Unstable Version

License

advanced

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

Feature comparision

Feature php-console-spinner php-cli-snake
Lightweight ✔️
Has zero dependencies ✔️
Highly configurable ✔️
Contains various spinner classes ✔️
Progress indicator ✔️
Messages indicator ✔️
Color settings for spinner ✔️
Color settings for messages ✔️
Color settings for progress indicator ✔️
Has disable() method ✔️
Has enable() method ✔️
Can show final message ✔️
Cursor hide can be disabled ✔️
Can use optional custom output ✔️
Has erase() method ✔️ ✔️
Hides cursor with $spinner->begin() ✔️ ✔️
Shows cursor with $spinner->end() ✔️ ✔️
Supports piping ✔️ ✔️
Supports redirect ✔️ ✔️
Supports no color mode ✔️ ✔️
Supports 16 color mode ✔️ ✔️
Supports 256 color mode ✔️ ✔️
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].