PHP class to interact with puppetdb