All Projects → inhere → Php Console

inhere / Php Console

Licence: mit
🖥 PHP CLI application library, provide console argument parse, console controller/command run, color style, user interactive, format information show and more. 功能全面的PHP命令行应用库。提供控制台参数解析, 命令运行,颜色风格输出, 用户信息交互, 特殊格式信息显示

Projects that are alternatives of or similar to Php Console

Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+810%)
Mutual labels:  console-application, cli, command-line, console
Cointop
A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
Stars: ✭ 2,912 (+839.35%)
Mutual labels:  cli, command-line, console
Mandown
man-page inspired Markdown viewer
Stars: ✭ 173 (-44.19%)
Mutual labels:  cli, command-line, console
Tty Markdown
Convert a markdown document or text into a terminal friendly output.
Stars: ✭ 275 (-11.29%)
Mutual labels:  console-application, cli, console
Clrcli
CLRCLI is an event-driven library for building line-art user interfaces in C#/.Net command-line applications.
Stars: ✭ 124 (-60%)
Mutual labels:  cli, command-line, console
Nnn
n³ The unorthodox terminal file manager
Stars: ✭ 13,138 (+4138.06%)
Mutual labels:  cli, command-line, console
Sharprompt
Interactive command line interface toolkit for C#
Stars: ✭ 197 (-36.45%)
Mutual labels:  cli, command-line, interactive
Mix Phar Skeleton
Phar command line program development skeleton
Stars: ✭ 81 (-73.87%)
Mutual labels:  cli, console, phar
Ascii
👾 ASCII Roulette :: ascii art video chat on the cli
Stars: ✭ 202 (-34.84%)
Mutual labels:  cli, command-line, console
Jquery.terminal
jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
Stars: ✭ 2,623 (+746.13%)
Mutual labels:  cli, command-line, console
Box
📦🚀 Fast, zero config application bundler with PHARs.
Stars: ✭ 574 (+85.16%)
Mutual labels:  console-application, command-line, phar
Word Wrap
Wrap words to a specified length.
Stars: ✭ 107 (-65.48%)
Mutual labels:  cli, command-line, console
Simple Console
Add an elegant command-line interface to any page
Stars: ✭ 107 (-65.48%)
Mutual labels:  cli, command-line, console
Qoa
Minimal interactive command-line prompts
Stars: ✭ 2,007 (+547.42%)
Mutual labels:  cli, command-line, interactive
Tooling
Advancing Node.js as a framework for writing great tools
Stars: ✭ 98 (-68.39%)
Mutual labels:  cli, command-line, console
Gcli
🖥 Go CLI application, tool library, running CLI commands, support console color, user interaction, progress display, data formatting display, generate bash/zsh completion add more features. Go的命令行应用,工具库,运行CLI命令,支持命令行色彩,用户交互,进度显示,数据格式化显示,生成bash/zsh命令补全脚本
Stars: ✭ 188 (-39.35%)
Mutual labels:  cli, command-line, console
Rang
A Minimal, Header only Modern c++ library for terminal goodies 💄✨
Stars: ✭ 1,080 (+248.39%)
Mutual labels:  cli, command-line, console
Window Size
Reliable way to to get the height and width of the terminal/console in a node.js environment.
Stars: ✭ 79 (-74.52%)
Mutual labels:  cli, command-line, console
Survey
A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
Stars: ✭ 2,843 (+817.1%)
Mutual labels:  cli, command-line, interactive
Ink
🌈 React for interactive command-line apps
Stars: ✭ 17,505 (+5546.77%)
Mutual labels:  cli, command-line, interactive

PHP Console

License Php Version Latest Stable Version Github Actions Status

A simple, full-featured php command line application library.

Provide console parameter parsing, command run, color style output, user information interaction, and special format information display.

中文README

Command line preview

app-command-list

Features

Easy to use. Can be easily integrated into any existing project.

  • Command line application, controller, command parsing run on the command line
  • Support for setting aliases for commands. A command can have multiple aliases. Support command display/hide, enable/disable
  • Full-featured command line option parameter parsing (named parameters, short options -s, long options --long).
  • The input, output of the command line, management, use
  • Command method comments are automatically parsed as help information (by default, @usage @arguments @options @example)
  • Support for outputting message texts of multiple color styles (info, comment, success, warning, danger, error ... )
  • Commonly used special format information display (section, panel, padding, helpPanel, table, tree, title, list, multiList)
  • Rich dynamic information display (pending/loading, pointing, spinner, counterTxt, dynamicText, progressTxt, progressBar)
  • Common user information interaction support (select, multiSelect, confirm, ask/question, askPassword/askHiddenInput)
  • Support for predefined parameter definitions like symfony/console (giving parameter values by position, recommended when strict parameter restrictions are required)
  • The color output is windows linux mac compatible. Environments that do not support color will automatically remove the relevant CODE.
  • Quickly generate auto-completion scripts for the current application in the bash/zsh environment
  • NEW: Support start an interactive shell for run application

Built-in tools

  • Built-in Phar packaging tool class, which can be easily packaged into phar files. Easy to distribute and use
    • Run the command php examples/app phar:pack in the example, which will package this console library into an app.phar
  • Built-in file download tool class under command line with progress bar display
  • Command line php code highlighting support (from jakub-onderka/php-console-highlighter and making some adjustments)
  • Simple Terminal screen, cursor control operation class
  • Simple process operations using classes (fork, run, stop, wait ..., etc.)

All features, effects; can be run in the example code phps/app in examples/. Basically covers all the features and can be tested directly

Installation

composer require inhere/console

Document List

Please go to WIKI for detailed usage documentation

Project address

Unit test

phpunit
// output coverage without xdebug
phpdbg -dauto_globals_jit=Off -qrr /usr/local/bin/phpunit --coverage-text

License

MIT

My other projects

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].