Object oriented API for the PHP PS extension