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?

Rgds,
Barry.

Check this https://dev.ewelink.cn/#/

I have made an API gateway for ewelink, just some days ago: https://github.com/PJanisio/ewelinkApiPhp

1 Like

If you are still interested in doing this, please check out my recent php script. I am also reading a temperature sensor. https://mresoftware.com/Coolkit_API.htm