laminas/laminas-cli
Console tooling for Laminas applications and components. Provides a CLI entry point, command discovery/registration, and integration helpers to build and run project-specific commands via Composer and your framework configuration.
Use This Package If:
bin/console-like scripts) and reduce technical debt.Look Elsewhere If:
symfony/console directly.symfony/console or league/cli-table."This package lets us standardize command-line tools across our Laminas/Mezzio applications, reducing duplication and speeding up development of internal scripts (e.g., data imports, deployments). By reusing a maintained library instead of custom code, we cut technical debt and align with Symfony’s modern CLI patterns. It’s a low-risk, high-reward way to improve developer productivity—think of it as ‘Artisan for Laminas.’"
*"Laminas CLI gives us a drop-in solution to run Symfony Console commands in Laminas/Mezzio apps without reinventing the wheel. Key benefits:
vendor/bin/laminas command.Use case: Need a CLI tool for [X feature]? Write a Symfony command, register it in config/autoload/laminas-cli.global.php, and run it via laminas my:command. No more hacking bin/ scripts."*
*"If you’re tired of writing custom CLI entry points or dealing with broken bin/console-like scripts, this package is your savior. It:
@Command, @Argument) for modern PHP.--container flag, better error handling).Example: To add a user:export command:
module/Config/cli.php:
return ['laminas-cli' => ['commands' => ['user:export' => UserExportCommand::class]]];
vendor/bin/laminas user:export --help.
No more bin/ script boilerplate!"*How can I help you explore Laravel packages today?