Buffer API library client for PHP