Posts

Showing posts with the label repl

Finally, a pretty good REPL for PHP that I'm looking for

Image
After a while giving up on looking for a good REPL for PHP to make my debugging life easier, I accidentally found this: http://psysh.org/ And OMG it is so good. Things such as autocomplete, history, don't have to put the semicolon at the end of every line!!! I love it!!! Check it out now!!!

Using Boris REPL to test your PHP code

Image
Love the Python REPL interface? Wanna do something like that in PHP? Let's try Boris , the missing PHP REPL: https://github.com/d11wtq/boris To install boris in Ubuntu (I'm using v14.04), the easiest way is to  clone the git repository: $ git clone git://github.com/d11wtq/boris.git $ cd boris $ sudo ln -s /path/to/boris/bin/boris /usr/local/bin/boris Now you can test-drive your PHP code in command line without writing all the code at one.