Skip to content

Command-line interface for Laminas projects

License

Notifications You must be signed in to change notification settings

samsonasik/laminas-cli

 
 

Repository files navigation

laminas-cli

Command-line interface for Laminas projects

Installation

Via Composer

Install the library globally using Composer:

$ composer require laminas/laminas-cli

Usage

$ vendor/bin/laminas-cli

Custom command

if you want to add any command for Laminas MVC or Mezzio application just implement normal Symfony console command and add register the command for the cli:

return [
    'laminas-cli' => [
        'commands' => [
            'package:command-name' => MyCommand::class,
        ],
    ],
];

Please remember that if command has some dependencies you should register also factory within the container, for example:

return [
    'dependencies' => [
        'factories' => [
            MyCommand::class => MyCommandFactory::class,
        ],
    ],
];

About

Command-line interface for Laminas projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%