sebastian/cli-parser
sebastian/cli-parser is a lightweight PHP library for parsing command-line arguments from $_SERVER['argv'], extracted from phpunit/phpunit. Ideal for building CLI tools and test runners that need reliable option and argument handling.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pear/console_getopt | 0.85 | PEAR Console_Getopt is a small PHP library for parsing command-line options and arguments. It supports GNU-style short and long flags, handles required/optional values, and provides help-friendly parsing for CLI scripts and tools. | 85 | 85 | 14 | 1M | 0 | 21.1 | 65.0 | BSD-2-Clause | 6 years ago | |
| consolidation/annotated-command | 0.85 | PHP library for building CLI commands from annotations/attributes. Define command names, options, arguments, and hooks in docblocks, then let it parse input and run methods. Used by Drush and other tools for fast, structured command definitions. | 225 | — | 40 | — | 19 | 8.4 | 8.2 | NOASSERTION | — | |
| zendframework/zend-console | 0.85 | Zend\Console provides a robust set of tools for building PHP command-line apps and scripts. It includes input parsing, argument and option handling, console adapters, and helpers for formatting output, making it easier to create interactive and portable CLI commands. | 47 | 50 | 30 | 33K | 9 | 12.3 | 49.3 | BSD-3-Clause | 7 years ago | |
| clue/commander | 0.84 | Minimal, pragmatic console framework for PHP. Define commands with arguments/options, get automatic help/usage output, and run apps via a simple dispatcher. Lightweight alternative to Symfony Console for building small CLI tools quickly. | 167 | 167 | 9 | 295 | 5 | 25.2 | 9.0 | MIT | 5 years ago | |
| pmjones/caplet | 0.82 | Caplet is a minimal PSR-11 autowiring dependency injection container for constructor injection and simple factories. Use get() for shared instances, new() for fresh ones, configure scalar parameters via an array, and map interfaces/abstracts via factories. | 8 | 8 | 0 | 2 | 0 | 20.3 | 1.4 | MIT | 2 years ago | |
| sebastianfeldmann/cli | 0.79 | Lightweight PHP library for building CLI tools: defines commands and options, parses argv, validates input, and renders help/usage output. Clean API for composing console applications with consistent argument handling and exit codes. | 21 | 21 | 8 | 264K | 4 | 29.8 | 65.9 | MIT | 1 year ago | |
| clue/arguments | 0.78 | clue/arguments is a small PHP utility to parse and handle command-line arguments. It helps normalize argv, split options and values, and access flags and parameters easily—useful for building simple CLI tools without pulling in a full console framework. | 31 | 31 | 7 | 1K | 1 | 21.4 | 25.8 | MIT | 5 years ago | |
| simple-cli/simple-cli | 0.75 | Dependency-free CLI framework for PHP 8 using attributes/annotations. Auto-generates --help docs, suggests mistyped commands, supports colors, interactive input with completion, and includes usage/version plus --help/--quiet/--verbose. CLI scaffolding and PHAR build support. | 10 | 11 | 2 | 11K | 0 | 24.5 | 48.9 | MIT | 3 years ago | |
| parsica-php/parsica | 0.75 | Parsica is a PHP parser combinator library for building custom parsers from small reusable pieces. Compose complex grammars with a fluent API, parse strings into structured results, and handle errors cleanly—ideal for DSLs, config formats, and language tooling. | 412 | 412 | 16 | 10K | 11 | 30.7 | 30.3 | MIT | 8 months ago | |
| laragraph/utils | 0.73 | Laravel utilities for building GraphQL servers: shared primitives and helpers used by GraphQL packages. Install via Composer and use as a lightweight foundation for SDL-first (Lighthouse) or code-first (graphql-laravel) setups. | 21 | 21 | 7 | 502K | 0 | 25.1 | 65.0 | MIT | 1 month ago | |
| clue/term-react | 0.70 | ReactPHP-powered interactive terminal for PHP. Read keypresses and line input from STDIN without blocking, work with streams and events, and build responsive CLI apps that react to user input in real time. | 104 | — | 7 | — | 0 | 20.8 | — | MIT | 2 years ago |
How can I help you explore Laravel packages today?