Libraries tagged by charm
charm/util-phpencode
1661 Downloads
A small function that encodes compact PHP arrays, like json_encode - but for PHP arrays.
charm/terminal
1626 Downloads
Organized and colorful command line output through a simple markup language.
charm/parsing
68 Downloads
A PEG grammar parser, for parsing most context free grammar such as programming languages, database queries and mathematical expressions.
charm/options
6278 Downloads
A generic class for storing options while enforcing option types.
charm/map
86 Downloads
A hashmap implementation similar to Map in javascript - allowing keys and values of any data type. A small, thorough and efficient hashmap implementation.
sugarcraft/sugar-cli
189 Downloads
Opinionated CLI presentation helpers shaped after charmbracelet/fang's output layer: StatusLine (✓/✗/⚠/ℹ), Banner, Section header, Stage step, HelpText page, Frame, Logo, and stock themes (ansi/plain/charm/dracula/nord/catppuccin, plus terminal-adaptive auto).
neoground/charm
917 Downloads
Charm Framework
sugarcraft/candy-mosaic
2808 Downloads
Image-to-cell renderer for terminals — PNG/JPEG/GIF/APNG/WebP/BMP decoded via ext-gd and pure-PHP animated-container decoders and rendered through the best available protocol: Sixel, Kitty, iTerm2, the chafa CLI, or Unicode text tiers (half/quarter block, ASCII character ramp, chafa-style symbol coverage).
sugarcraft/candy-fuzzy
3638 Downloads
Fuzzy string matching with matched character indices plus the match score — Smith-Waterman + Sahilm algorithms. Enables filter-highlighting UIs across the ecosystem.
sugarcraft/candy-ansi
4780 Downloads
ECMA-48 VT500 state machine — ANSI byte-stream parser with abstract Handler interface. Shared extraction from sugar-vterm.
charm/util-composerpath
174 Downloads
Easily find the project root path (where composer.json is) without touching the filesystem.
charm/util-closuretool
857 Downloads
Tool to print information about a closure/callback for debugging purposes.
charm/interop
29 Downloads
A set of traits for classes that expect to have various common services injeted.
charm/fallback-logger
876 Downloads
An error logger designed to be a fallback implementation that logs via the PHP error_log() function or to STDERR with colors
charm/event
86 Downloads
A simple event emitter interface and a trait with the methods 'on', 'off' and 'emit'.