Library that implements the library php-extended/php-io-interface

7.0.2 2024-04-08 18:59 UTC


Library that implements the library php-extended/php-io-interface.

coverage build status


The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.

  • Download composer.phar from their website.
  • Then run the following command to install this library as dependency :
  • php composer.phar php-extended/php-io-object ^7

Basic Usage

For the output stream:

use PhpExtended\Io\ConsoleOutputStream;

$console = new ConsoleOutputStream();
$console->write('<your string here>', true);	// equivalent to echo '<your string>'."\n";

For the input stream:

use PhpExtended\Io\ConsoleInputStream;

$console = new ConsoleInputStream();
$input = $console->readline(); 				// equivalent to readline();


MIT (See license file).