I would introduce you "Domoticz-api".
This is a simple PHP wrapper library, available via composer, that enable to send "simple" instructions to your Domoticz server via API.
https://github.com/sineverba/domoticz-api
I think that abstraction is very high, with very simple command you can fetch info from Domoticz and send command.
For the moment, at 1.0.0, you can poweron / poweroff a device, talk with your user variables and fetch every device, by Name or by idx.
This is the github repository. Feel free to clone, fork, destroy

I'm using currently my own library for another project, so I can confirm that is stable.
Have a nice day!