PHP code example of germanozambelli / hassio-apiclient-php
1. Go to this page and download the library: Download germanozambelli/hassio-apiclient-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
germanozambelli / hassio-apiclient-php example snippets
use GermanoZambelli\Hassio\Credentials\ApiCredentials;
use GermanoZambelli\Hassio\Hassio;
$apiCredentials = new ApiCredentials('http://ipaddress:port', 'password');
$hassio = new Hassio($apiCredentials);
use GermanoZambelli\Hassio\Credentials\ConfiguratorCredentials;
use GermanoZambelli\Hassio\Hassio;
$configuratorCredentials = new ConfiguratorCredentials('http://ipaddress:port', 'username', 'password');
$hassio = new Hassio(null, $configuratorCredentials);
$ composer