php-extended / php-io-object
Library that implements the library php-extended/php-io-interface
9.0.7
2026-05-20 00:44 UTC
Requires
- php: >=8.2
- php-extended/php-io-interface: ^9
Requires (Dev)
This package is auto-updated.
Last update: 2026-05-19 22:44:41 UTC
README
Library that implements the library php-extended/php-io-interface.
Installation
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.pharfrom their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-io-object ^9
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();
License
MIT (See license file).