PHP backend for SmartWFM