psy/psysh's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
PsySH is a modern and detailed runtime application for PHP developers. This interactive console functions as a runtime developer console, as well as an interactive debugger. At its core, PsySH also serves as REPL, or a Read-Eval-Print-Loop, for PHP. The service offers substantial aid in PHP code development through on-the-fly code execution, debugging, and even testing.
To use the PsySH package, you first need to install the package. This can be done via composer, by running
composer global require psy/psysh. This command installs the package that provides access to the
psysh command. With PsySH installed, you can start a session simply by typing
psysh in your console. From there, you can execute any PHP code. Here’s a simple example:
php > echo 'PsySH is cool!'; PsySH is cool!
Between sessions, PsySH saves your command history, so you can always pick up where you left off. PsySH also supports a range of magic variables and shell integrations to make your work easier.
PsySH offers comprehensive documentation to aid developers in understanding and using the package effectively. The main PsySH manual, which provides a detailed overview of all PsySH features, can be found on GitHub. The manual covers a wide range of topics, from installation and configuration, to commands and integrations. Also included are usage instructions, tips for troubleshooting, and guides on managing history and shell integration. The manual is a great resource for both new and experienced users.