Modbus tcp connection to a Website

Hi there.

I’m looking for a codeexample to write coils with buttons on my website. I searched for php and js examples but only found some for node.js.

I have a html website and want to include this functionallity.

Thx for your help!