sebastian/cli-parser
Parse PHP CLI arguments ($_SERVER['argv']) with a small, focused library extracted from PHPUnit. sebastian/cli-parser helps you interpret options and parameters reliably in console scripts and tools, with Composer-friendly installation.
|
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 | 2M | 0 | 1.1 | 55.3 | 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 | 226 | 40 | 1M | 19 | 8.4 | 58.6 | 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 | 36K | 9 | 2.3 | 29.4 | BSD-3-Clause | 7 years ago | |
| alexeyshockov/plain-commands | 0.84 | — | 2 | 2 | 1 | 0 | 0 | 0.0 | — | MIT | — | |
| 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 | 1K | 5 | 5.2 | 13.4 | MIT | 5 years ago | |
| 21torr/cli | 0.83 | — | 0 | 0 | 2 | 773 | 0 | 18.4 | 45.3 | MIT | 3 months 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. | 0 | 8 | — | 0 | — | 0.3 | — | — | — | |
| 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 | 300K | 4 | 9.8 | 55.8 | MIT | 1 year 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. | 11 | 12 | 2 | 13K | 0 | 4.5 | 41.8 | 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 | 17 | 16K | 11 | 12.5 | 28.1 | MIT | 10 months ago | |
| clue/arguments | 0.74 | 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 | 2K | 1 | 1.4 | 24.8 | MIT | 5 years 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 | 8 | 555K | 0 | 20.2 | 62.6 | MIT | 3 months ago |
How can I help you explore Laravel packages today?