It's been a while now since I first looked up for an interactive PHP shell. There quite a lot of projects in the wild, such as PHP_Shell, PHPInteractiveTerminal, iphp, phpsh, etc, but none that would actually satisfy me (either they didn't fulfill my requirements or they were only toy projects or...). Until today ! I am very pleased to announce PHPInteractiveShell, a (nearly) full-featured interactive shell for PHP.

Key features include:

  • Fault tolerant: will not die on fatal errors
  • Readline support (only history for now)
  • Multiline support: start your if on a line and finish it on another
  • Plugins support: easily extend the shell capabilities
  • Bootstrap support: easily setup an environment inside your shell
  • Config file support: easily configure your shell behavior

The whole thing is still in beta stage, so feel free to fork it, play with it and report any issue!