stecman/symfony-console-completion
Adds Bash and Zsh tab-completion to Symfony Console apps. Zero-config completion for command names and options, plus hooks to customize argument/option value suggestions. Install via Composer and register the CompletionCommand to enable shell completion.
Install via Composer: composer require --dev stecman/symfony-console-completion. Once installed, the package automatically registers a completion handler for any Symfony console command in your app. To test, run a command with tab completion in your shell (e.g., ./bin/console app:send<tab>) — if configured correctly, it will auto-complete options, arguments, and enum values. Start by enabling shell completion globally via vendor/bin/completion register (or add it to your shell profile manually, depending on your shell: bash/zsh/fish).
InputDefinition and InputOption/InputArgument.--status=pending|completed.console.completion and implementing Symfony\Component\Console\Completion\CompletionInput & CompletionSuggestions (available from Symfony 6.2+; for older versions, the package provides its own API).bin/console <command> --completion to dump possible completions for debugging or CI validation.bash-completion package is installed on Linux/macOS and your shell is configured to source the generated completion script.completion or complete — the package reserves these for internal use.SYMFONY_DEBUG=1 ./bin/console to see internal completion logs. If no completions appear, check that your command options use proper addOption() with defined names/types and avoid anonymous closures in InputOption.CompletionInput context.How can I help you explore Laravel packages today?