1. Go to this page and download the library: Download mstroink/solax-inverter 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/ */
mstroink / solax-inverter example snippets
use MStroink\Solax\Inverter;
$inverter = Inverter:create('192.168.178.10');
use MStroink\Solax\Http\HttpClientConfigurator;
use MStroink\Solax\Inverter;
use Cake\Http\Client as CakeClient;
$clientConfigurator = (new HttpClientConfigurator())
->setHost('192.168.178.10');
->setClient(new CakeClient(['timeout' => 10]));
$inverter = new Inverter($clientConfigurator)