The BASE API wrapper for PHP