Streaming encoding and serialization for PHP.