A basic implementation around PHP StreamWrappers