rapotor/console-bundle
A console bundle for Rapotor applications that adds structured command-line tooling: register CLI commands, run them from a single framework-integrated entry point, and keep terminal tasks consistent and easy to extend. Lightweight and straightforward to wire into existing apps.
Primary decision: build vs. use native framework primitives for programmatic CLI invocation. The underlying need is real and recurring — triggering a console command from application code (a controller, a queue job, a webhook handler, an admin UI button) rather than from a terminal. This package is one historical answer to that need; your decision is whether it (or a replacement) belongs in your stack.
Artisan::call(), Artisan::queue(), and $this->artisan() in tests already cover the requirement, including argument arrays, output capture, and exit codes. In Symfony 3.4+, Symfony\Bundle\FrameworkBundle\Console\Application plus CommandTester covers it. There is no gap this package fills on a supported stack.Adopt only under a narrow, and shrinking, set of conditions:
Application and dispatches a named command with arguments — and you've confirmed the vendor tree is already vendored/locked, so you're not introducing new supply-chain surface.Look elsewhere — decisively — if any of the following hold:
Artisan facade / Illuminate\Contracts\Console\Kernel. No package needed.To executives (one line): Do not fund adoption. This is a 26-star, zero-dependent Symfony2-era utility for a capability our framework already ships natively; adopting it adds maintenance and security liability without adding functionality. If it appeared during due diligence, it's a symptom of a legacy platform, and the right investment is migration, not integration.
To engineering (the substance): The requirement — invoke a console command from application code — is legitimate and already solved. On Laravel, Artisan::call() with an argument array, or Artisan::queue() when the work is slow enough to leave the request cycle. On modern Symfony, the framework console Application or CommandTester. This bundle predates both, targets an end-of-life framework, and offers nothing those don't. Recommended disposition: reject as a new dependency; if already present, file it as a removal item inside the Symfony2 migration epic and replace call sites with a small internal service that wraps the native API — that wrapper is where you add the things the bundle never had: command allowlisting, argument validation, authorization, structured logging, timeout, and a queued/async path.
Honest caveat to state up front: the low score (2.64) is not a judgment on the original authors — this was reasonable engineering for its era. It's a judgment on fit today. Scoring it low on opportunity is correct precisely because the surrounding ecosystem caught up and then moved on.
How can I help you explore Laravel packages today?