Skip to content
This repository was archived by the owner on Feb 27, 2019. It is now read-only.

chigix/php-io-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IO Component

Latest Stable Version Total Downloads Latest Unstable Version License

IO Component greatly provide some base classes as streams, serialization and the file system for System Input and output.

If you are familiar with java.io in JDK, you might get started to use this component quickly.

In addition this component provides common filesystem features needed to any useage case in stream programming style:

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

Besides, you could create your io utils with stream operation supports by extends the Base Stream Classes easily:

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

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

    public function close() {
        
    }

    public function flush() {
        
    }

}

Then the new stream from your self could be used at any FileSystem IO, Network Socket IO script logic directly. Seems exciting right?

This component provides a log of abstract base classes and interfaces like InputStream, OutputStream, EOFException, ...

Resources

About

The IO component for PHP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages