Interactive shell, runtime console and debugger for PHP
open sourceMITfree
PsySH is a REPL, runtime developer console and interactive debugger for PHP. Run it on its own to try code, or drop it into an application to stop at a point and inspect the variables in scope. It has built-in commands, an optional offline copy of the PHP manual, magic variables, history, system shell integration, themes and a config file. Many frameworks build their consoles on it, including Laravel's artisan tinker, Drush for Drupal, WP-CLI's shell, CakePHP's console and Yii's shell. Install it as a phar from psysh.org, with Composer (psy/psysh) or with Homebrew.
Ways to install
Package managers
Problems it solves
- try a bit of PHP interactively without writing a script file
- drop into a console in the middle of my PHP code to inspect variables
- an interactive shell for my PHP framework's models
Features
- interactive PHP REPL
- breakpoint-style console inside a running app
- built-in commands and an optional offline PHP manual
- magic variables and history
- themes and config file
- used by Laravel Tinker, Drush and WP-CLI shell
