This is a modified fork of a tiny class to facilitate controlling the Yeelight WiFi bulbs by Xiaomi in PHP.
Function names are dynamic and correspond to the API endpoints.
This script has no external dependencies other than some PHP 5.x version and the sockets extension.
See the WIKI for more information.
You will need to enable wifi "LAN" mode for any bulbs you wish to control via the API from the Yeelight control applet.
For more information about Yeelight API: https://www.yeelight.com/en_US/developer
NOTE: It currently is not very PHP8 friendly - fixes coming soon.