Also see: https://www.homegear.eu/index.php/Homegear_Reference
See Example.php.
Visit https://www.homegear.eu/index.php/Homegear_Reference#Homegear_0.6 for more information.
Require the file "Client.php" somewhere at the top of your PHP file:
require_once("Client.php");
$Client = new \XMLRPC\Client(HOSTNAME, PORT, true);
$Client = new \XMLRPC\Client(HOSTNAME, PORT, false);
To enable/disable certificate verification:
$Client->setSSLVerifyPeer(true);
To set the path to your CA certificate (needed when certificate verification is enabled):
$Client->setCAFile("/path/to/ca.crt");
To set your Homegear username and password:
$Client->setUsername(USERNAME);
$Client->setPassword(PASSWORD);
After creating the XML RPC client object, you can invoke XML RPC methods with:
$Client->send("METHODNAME", array(PARAMETERS));
Also see Example.php.