PHP code example of chigix / io-component

1. Go to this page and download the library: Download chigix/io-component library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

chigix / io-component example snippets


$input = Chigi\Component\IO\StdInputStream::getInstance();
echo $input->readLine();

class RoboOutputStream extends \Chigi\Component\IO\OutputStream {

    protected function writeString($string) {
        \Robo\Runner::getPrinter()->write($string);
    }

    public function close() {
        
    }

    public function flush() {
        
    }

}