Unified I/O classes for PHP