PHP Streams Rock my World!

Project
This post is over 9 years old and is probably out of date.

PHP streams are absolutely amazing. As mentioned by Elizabeth Smith (a great read if you don’t know how to use streams) PHP streams are super powerful. Streams is something that is (to my knowledge) unique to PHP.

The closest thing I’ve seen to it, is Linux’s FUSE “user space” (i.e. not kernel module) file systems; this is how you see things like being able to mount SSH, FTP or Google Mail

Does anybody know of a feature like streams in any other language? I’m just curious

I’d love to see if it’s possible to pass something like “s3://some/file/path” to any native file IO function and have it query Amazon’s S3 storage in Ruby, or Java, or Python – odds are there are nice APIs for this, but you can’t switch those out easily in place of native file storage.

For me, being able to do something like the following is simply mindblowing:

P.S.
I’m working on something that uses streams and is hopefully even cooler than PHP_Archive, look for an alpha soon