Library wrappers for PHP.