sbooker / console
Console command superclass
Installs: 4 592
Dependents: 2
Suggesters: 1
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.1 || ^8.0
- symfony/console: ^5.0 || ^6.0
This package is auto-updated.
Last update: 2024-11-05 19:11:10 UTC
README
Catch all exceptions and write message, trace (in verbose mode) to console output.
Returns code depends of executing result. Zero on success. Exception code or one otherwise.
Installation
composer require sbooker/console
Usage
use Sbooker\Console\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class ConcreteCommand extends Command { // Define command. See [Symfony Console Component](https://symfony.com/doc/current/components/console.html) protected function doExecute(InputInterface $input, OutputInterface $output) : void { // .... do something successful .... } }
License
See LICENSE file.