Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Charles Cheever
August 28, 2006, 8:03 am
rate this thread
We're releasing a readline-based interactive shell for PHP called
Users can enter php statements and expressions and they will be
evaluated on the fly.
Here is a transcript of a trivial example session:
php> $t = time()
php> = $t
php> = strftime('The current time is %x %X', $t)
The current time is 08/27/06 23:44:42
phpsh has been useful for codebase testing, inspection, and interactive
scripting. It has history (even between sessions), tab-completion, and
documentation access for user-defined functions. It works with ctags,
allowing you to instantly jump into the code where a function is
defined using vim or emacs.
phpsh is available at http://www.phpsh.org/
We wrote phpsh as a tool to make PHP development easier and faster at
Facebook. You can check out other Facebook open source contributions
at http://developer.facebook.com/opensource.php . phpsh works on
systems where the python2.4 subprocess module and GNU readline module
work (Linux and OS X, probably not Windows). phpsh is open source;
access to the repository is available through darcs, and details of
license can be found on the phpsh website.
We hope others find it as useful as we have,
- Dan and Charlie from Facebook