Tools for working with PHP streams