adhocore/cli
A lightweight PHP library to build interactive CLI apps with commands, options, prompts, and colored output. Create structured command-line tools quickly, with input helpers and utilities suited for both simple scripts and larger console applications.
php bin/foo for project-specific utilities) without coupling to frameworks.Adopt when:
Look elsewhere if:
For Executives: "adhocore/cli lets us ship high-quality CLI tools 30% faster with less code. It’s the ‘React for PHP CLI’—lightweight, intuitive, and reusable across teams. Think of it as a force multiplier for DevOps, data pipelines, or internal automation. MIT-licensed and dependency-light, so it won’t bloat our stack."
For Engineering:
*"This replaces manual getopt() parsing and echo spaghetti with a modern, Laravel-like API for CLI apps. Key wins:
ANSI escape codes).argparse-style script with 10 lines of clean, documented code."*For Developers: *"Imagine writing a CLI tool where:
--help just works (no manual docs).->validate(fn($val) => $val > 0).->section('Progress')->info('Step 1/3').
No more hacking fgets() or parsing $argv manually. Just define your commands and go."How can I help you explore Laravel packages today?