Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

Latest commit

 

History

History
23 lines (15 loc) · 632 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 632 Bytes

PHP Interactive CLI

Build Status

An abstract PHP class which can be extended to create a program that accepts multiple lines of input and return output.

An extending class must implement a method called readLine. This is the function called after each line of input. If readLine() returns false, the program will exit.

Demo

To run demo:

cd demos
php run_demo.php
php run_demo.php < input.txt

TODO

  • Add an interface to be implemented by line readers, instead of extending main class.