PHP language API library and example