dev/test environments, avoiding production risks. This mirrors Laravel’s debugbar or tinker packages, which are also dev-focused.AppKernel vs. Laravel’s Application/Bootstrap. The bundle hooks into Symfony’s kernel events (e.g., console.command), which Laravel handles via Artisan commands or service providers.psy/psysh) without the bundle, launching it manually via Artisan.ConsoleEvents) differs from Laravel’s.psy/psysh:^0.12) and adapt the bundle.laravel/tinker (built-in REPL)barryvdh/laravel-debugbar (for HTTP debugging)php/built-in REPL (since PHP 8.2)?.env)?php artisan psysh).ConsoleEvents would need replacement with Laravel’s ConsoleEvents or custom logic.require-dev dependencies (e.g., symfony/symfony) may need pruning.psy/psysh standalone in Laravel to validate core functionality.PsyshCommand) that initializes PsySH manually:
use Psy\Sh;
use Symfony\Component\Console\Input\ArgvInput;
class PsyshCommand extends Command {
protected function execute(InputInterface $input, OutputInterface $output) {
$sh = new Sh(new ArgvInput());
$sh->run();
}
}
dev environment only (per bundle’s intent).Psy\Sh constructor changes).FidryPsyshBundle:Psysh command) may not translate 1:1.tinker already provides REPL functionality; assess unique value-add.tinker or PHP 8.2+ REPL suffices.tinker or other REPL tools.tinker has built-in support; prefer that unless PsySH offers critical features.tinker (depends on object inspection).dev/test; no production impact if gated properly..env checks).$obj->dump()) differs from Laravel’s dd() or tinker.php artisan psysh).tinker (e.g., no built-in Laravel helpers).tinker for quick checks, PsySH for deep debugging).How can I help you explore Laravel packages today?