1. Go to this page and download the library: Download thephpguys/broadlink 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/ */
use TPG\Broadlink\Device\RMDevice;
$device = new RMDevice('192.168.88.15','34:ea:cc:cc:cc:bc');
$device->authenticate();
echo $device->getTemperature();
use TPG\Broadlink\Cloud\Catalog;
$catalog = new Catalog('/path/where/you/want/to/save/remotes');
$remotes = $catalog->search('Samsung');
//Download first remote
print_r($remotes[0]->download());
//Or download all found remotes
foreach($remotes as $remote){
$remote->download();
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.