Object-Oriented API for PHP streams