Best way to get started with a PHP API?

I am just getting started with eWeLink and would like to control/read devices using a PHP API.

I have loaded kukkjanos/ewelink from github and am getting a number of errors.

I want to read the temperature back from a SonOff temperature sensor and plot it on a web page.

Is this the best route for PHP API? Is there a better route?


Check this