Object wrappers around commonly used functions in PHP