Stream_deprecated is a project mainly written in PHP, it's free.
Lightweight, asynchronous, object-oriented layer for the great PHP stream API