PHPackages                             sugarcraft/candy-kit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. sugarcraft/candy-kit

ActiveLibrary[CLI &amp; Console](/categories/cli)

sugarcraft/candy-kit
====================

PHP port of charmbracelet/fang — opinionated CLI presentation helpers: StatusLine (✓/✗/⚠/ℹ), Banner, Section header, Stage step, HelpText page, and 6 stock themes (ansi/plain/charm/dracula/nord/catppuccin).

101PHP

Since Jun 29Pushed 1mo agoCompare

[ Source](https://github.com/sugarcraft/candy-kit)[ Packagist](https://packagist.org/packages/sugarcraft/candy-kit)[ RSS](/packages/sugarcraft-candy-kit/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (1)

[![candy-kit](.assets/icon.png)](.assets/icon.png)

CandyKit
========

[](#candykit)

[![CI](https://github.com/detain/sugarcraft/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/detain/sugarcraft/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/88449843f26e5e9477e5d201780ffb9cb82814de987931bce073d7482dffd749/68747470733a2f2f636f6465636f762e696f2f67682f64657461696e2f737567617263726166742f6272616e63682f6d61737465722f67726170682f62616467652e7376673f666c61673d63616e64792d6b6974)](https://app.codecov.io/gh/detain/sugarcraft?flags%5B0%5D=candy-kit)[![Packagist Version](https://camo.githubusercontent.com/6204dbd228d09177675e3a8e3d2c58c696a05cb1a1ce9a4c19b872430f7b8b43/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737567617263726166742f63616e64792d6b69743f6c6162656c3d7061636b6167697374)](https://packagist.org/packages/sugarcraft/candy-kit)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP](https://camo.githubusercontent.com/e78ffc83837c0d12647811a7fd1910c3cbeae04988de94bb4fd5b67e0874696a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d254532253839254135382e312d3838393262662e737667)](https://www.php.net/)

[![demo](.vhs/cli-page.gif)](.vhs/cli-page.gif)

```
composer require sugarcraft/candy-kit
```

PHP port of [charmbracelet/fang](https://github.com/charmbracelet/fang) — opinionated **CLI presentation helpers** that turn ordinary command- line output into something that matches the rest of the SugarCraft stack. CandyKit is library-only — drop it into any Composer project, no Symfony Console requirement.

```
use SugarCraft\Kit\StatusLine;
use SugarCraft\Kit\Banner;
use SugarCraft\Kit\Theme;

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";
```

Components
----------

[](#components)

- **`Theme`** — palette of `Sprinkles\Style` objects keyed by status level (success / error / warn / info / prompt / accent / muted). `Theme::ansi()` ships a sensible default; bring your own theme by passing styles to the constructor.
- **`StatusLine`** — `success` / `error` / `warn` / `info` static helpers returning a glyph + message string styled per the active theme.
- **`Banner`** — render a bordered title block with optional subtitle, rounded by default. Useful for app intros / `--version` output.
- **`Logo`** — ASCII-art logo renderer with `Logo::sugarcraft()` built-in preset and `Logo::fromAscii($art)` for custom art. Chain `->withColor($hex)` to apply foreground color.
- **`Section`** — styled section with title and body content, themeable.
- **`Stage`** — multi-section presentation container.
- **`HelpText`** — formatted help output.
- **`Frame`** — full-screen application chrome: a double-line box that fills the terminal exactly (`Frame::new()->withTitle($bar) ->withStatus($bar)->render($body, $cols, $rows)`), with a centred title bar, dividers, and a status bar. Normalises the body to a constant line count and pads ANSI-width-aware so it never overflows the terminal — safe for a TEA program whose frame-diff renderer owns the screen.

Demos
-----

[](#demos)

### CLI page

[](#cli-page)

[![cli-page](.vhs/cli-page.gif)](.vhs/cli-page.gif)

### Logo

[](#logo)

[![logo](.vhs/logo.gif)](.vhs/logo.gif)

### Section

[](#section)

[![section](.vhs/section.gif)](.vhs/section.gif)

### Stage

[](#stage)

[![stage](.vhs/stage.gif)](.vhs/stage.gif)

Test
----

[](#test)

```
cd candy-kit && composer install && vendor/bin/phpunit
```

Snapshot tests
--------------

[](#snapshot-tests)

Presenter output is pinned via `candy-testing`'s `assertGoldenAnsi` golden-file snapshots. Any change to the ANSI slide output must be intentional — re-record the fixture with `--update-golden` to accept a new canonical render.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance59

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 97% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1036e0717211b8030b83cbe729e8ba6ba442fdbd5285fb97a39d7dcfe339342?d=identicon)[detain](/maintainers/detain)

---

Top Contributors

[![detain](https://avatars.githubusercontent.com/u/1364504?v=4)](https://github.com/detain "detain (65 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

ascii-artbannercandycorecatppuccincharmcharm-themeconsole-uidraculafangfang-porthelp-textnordpresentationsectionstatus-linestep-indicatorterminalthemestui

### Embed Badge

![Health badge](/badges/sugarcraft-candy-kit/health.svg)

```
[![Health](https://phpackages.com/badges/sugarcraft-candy-kit/health.svg)](https://phpackages.com/packages/sugarcraft-candy-kit)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.8k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[mallardduck/laravel-traits

A collection of useful Laravel snippets in the form of easy to use traits.

136.2k2](/packages/mallardduck-laravel-traits)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
