PHP classes to connect to our REST API