PHP port of charmbracelet/gum β a composer-installable CLI of CandyCore TUI primitives, useful for shell scripts.
# Apply styling.
candyshell style --foreground "#ff5f87" --bold "Hello, candy!"
# Pick one item.
choice=$(candyshell choose Pizza Burger Salad)
# Read a single line.
name=$(candyshell input --placeholder "Your name?")
# Confirm a destructive action.
candyshell confirm "Really delete $file?" && rm "$file"styleβ apply Sprinkles styling to its argv (or stdin) and print.chooseβ select one item from a list; prints the selection.inputβ read a single line from the user.confirmβ yes/no; exit code0on yes,1on no.
spinβ show a spinner while running an external command.filterβ fuzzy filter over stdin lines.formatβ render Markdown / templates.pagerβ scroll long input.tableβ render a CSV / TSV table.writeβ multi-line text editor.fileβ file picker.logβ leveled logging output.joinβ string join.
cd candy-shell && composer install && vendor/bin/phpunit











