1 minute read

PHPSH is a command line tool for writing PHP code on terminal and getting the output directly. Although we can do that on terminal with the PHP interactive mode like this,

$ php -a

But you can see the output is not formatted or there is no indentation that is hard read actually.

Another helpful thing is we can read the php manual from php.net without going to the page. Whenever you need to know about any function just type d and the function name like this

$ d strlen

How to install it It’s easy to install on any unix like operating system. Download the file from here and extract it, then browse to the directory in terminal.

And run these commands.


$ cd phpsh-master 
$ python setup.py build
$ sudo python setup.py install
# then run phpsh by typing
$ phpsh

comments powered by Disqus