akmaks/command-chaining-bundle
Command system, making it natively compatible with Laravel’s Artisan (via Symfony Console integration). No major architectural conflicts expected.CommandChainingInterface). No database or external service dependencies.symfony/console. If using older Laravel versions, may require Symfony Console polyfills.app:first:main). Custom naming schemes may need adapter logic.migrate, seed, cache:clear).composer.json constraints).app:generate-reports → app:cleanup-temp).CommandChainingInterface and configure YAML.php artisan cmd1; php artisan cmd2) with chained commands.--force flags).configureInput() in commands.handle() method for custom error handling:
protected function execute(InputInterface $input, OutputInterface $output): int
{
try {
return parent::execute($input, $output);
} catch (Exception $e) {
$output->writeln('<error>Chain failed: ' . $e->getMessage() . '</error>');
return Command::FAILURE;
}
}
ProgressBar).| Failure Type | Impact | Mitigation |
|---|---|---|
| Command throws exception | Chain halts | Implement try-catch in master command. |
| Input mismatch between commands | Silent failure or incorrect output | Validate inputs in configureInput(). |
| YAML misconfiguration | Chain not registered | Use Symfony’s YAML validation. |
| Dependency conflicts | Composer install fails | Pin Symfony versions in composer.json. |
| Long-running commands | Process timeouts | Use queues or split chains. |
CommandChainingInterface.Artisan::call()).How can I help you explore Laravel packages today?