psysh
Interactive PHP shell and runtime debugger
TLDR
Start PHP REPL
SYNOPSIS
psysh [options]
DESCRIPTION
psysh is a modern interactive PHP shell (REPL) that provides a powerful developer console with syntax highlighting, tab completion, and inline documentation. It allows executing PHP code interactively, inspecting variables, and testing snippets without creating script files.
PsySH also functions as a runtime debugger when integrated into applications. By calling `eval(\Psy\sh())` in code, developers can drop into an interactive debugging session with access to the current scope's variables and context. It serves as the foundation for Laravel's tinker command.
PARAMETERS
-c FILE
Configuration file.-e CODE
Execute code.--include FILE
Include file.-v
Verbose output.
CONFIGURATION
~/.config/psysh/config.php
PHP configuration file for customizing the REPL behavior, including default includes, readline settings, and output pager.
CAVEATS
Requires PHP. Installed via Composer.
HISTORY
PsySH was created as a modern PHP REPL with advanced features.
