laminas/laminas-cli
Command-line tooling for Laminas applications. Provides a framework-agnostic CLI entry point and command infrastructure to run, discover, and organize project commands, with integration hooks for Laminas components and workflows.
laminas-cli does not provide autocompletion out of the box. However, it is possible to add autocompletion via a third-party package, bamarni/symfony-console-autocomplete. This package provides completion for any symfony/console-based application, which means it will work with laminas-cli as well.
First, install the autocompletion package as a global tool:
composer global require bamarni/symfony-console-autocomplete
Second, you will need to add configuration for your shell. We will add three things:
$PATH.For most shells, you can use the following:
# Skip this step if you already have the Composer script path in your $PATH
export PATH=$(composer global config home)/vendor/bin:$PATH
# Alias laminas-cli to current path
alias laminas=./vendor/bin/laminas
# Add the autocompletion script, informing it to also complete laminas
eval "$(symfony-autocomplete --aliases laminas)"
The above should be placed in your shell configuration file:
$HOME/.bashrc$HOME/.zshrc$HOME/.config/fish/config.fishOnce the changes have been made, either open a new terminal, or source your shell configuration:
source $HOME/.bashrcsource $HOME/.zshrcsource $HOME/.config/fish/config.fishOnce installation and configuration of the tooling is complete and you are
either in a new terminal or have sourced the changes to your shell
configuration, you can invoke autocompletion by pressing <Tab> after typing
the laminas command at the prompt:
$ laminas <TAB>
How can I help you explore Laravel packages today?