Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.
/ PHP-Interactive-CLI Public archive

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

Notifications You must be signed in to change notification settings

jjok/PHP-Interactive-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages