Wrapper libraries for inconsistent php functions