API Library for PHP