โ† All libraries

CandyKit

๐ŸŽ CandyKit

CLI presentation helpers

port of fang cli presentation library-only

StatusLine, Banner, Section, Stage, HelpText. Library-only โ€” no Symfony Console requirement. Drop into any Composer project to give CLI output the same look as the rest of the stack.

Install

composer require candycore/candy-kit

Quickstart

use CandyCore\Kit\{StatusLine, Banner};

echo Banner::title('CandyApp', 'v0.1.0'), "\n\n";
echo StatusLine::info   ('connecting to https://example.com'), "\n";
echo StatusLine::success('done in 0.4s'), "\n";
echo StatusLine::warn   ('disk almost full'), "\n";
echo StatusLine::error  ('connection refused'), "\n";

What's in the box

StatusLinesuccess / error / warn / info static helpers โ€” glyph + message styled per the active theme.
BannerBordered title block with optional subtitle, rounded by default. Useful for app intros / --version output.
ThemePalette of Sprinkles\Style objects keyed by status level. Theme::ansi() ships a sensible default.
SectionHeading + body separator that sits naturally between log streams.
StageSequence of named steps with progress indicators.
HelpTextTwo-column key/description listing matched to the rest of the stack.

Source & demos

Try the quickstart โ†’

Demos.

VHS-recorded GIFs of every example shipped with the library. Regenerated automatically on every push that touches the source.

CLI page

CLI page

StatusLine + Banner + Stage forming a cohesive CLI page.