News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Say Hello to Boris A Better REPL for PHP
April 02, 2013 @ 10:34:00

On PHPMaster.com today Shameer C has a new tutorial introducing you to Boris, a REPL (read-eval-print loop tool) that's a bit more enhanced than the basic PHP interactive shell.

As web developers, we know the importance of the JavaScript console provided by the browser in testing out code snippets. We don't need to write an entire HTML page and JavaScript code just to verify the functioning or logic of a small routine we wrote. Instead, we simply run the expressions in the console and immediately see the results. Similarly, a REPL (Read-Eval-Print Loop) is the console of a programming language in which we can write code line-by-line and see what it does. [...] PHP's REPL is very good in what it does, although it does have some limitations. [...] And so, Boris tries to solve these problems and other concerns as well.

He walks you through the installation (via a git clone and, later, through Composer) and shows how to run it as well as some sample output. He also shows how to make a custom command-line Boris runner and how to embed it into your application. His example of a tool that would benefit from this is a command-line web service client using Boris and Guzzle.

0 comments voice your opinion now!
boris repl read eval print loop tool commandline github


blog comments powered by Disqus

Similar Posts

Community News: PHPUnit 3.2 Released

Ars Technica: Questions abound as malicious phpMyAdmin backdoor found on SourceForge site

Dutch Web Alliance: The definitive remote debug and unittest with PHPStorm guide: part 6

Raphael Stolt's Blog: Closing and reopening GitHub issues via PHPUnit tests

DeveloperTutorials.com: Inserting An Array Into A Database


Community Events





Don't see your event here?
Let us know!


install zendserver package api release series symfony library bugfix introduction community interview voicesoftheelephpant unittest deployment framework podcast laravel opinion language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework