PHP code example of charykun / symcontclremote

1. Go to this page and download the library: Download charykun/symcontclremote 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/ */

    

charykun / symcontclremote example snippets


/*
 *  Key PowerOff
 * @param integer $InstanceID
 */
TCL_PowerOff($InstanceID);

/*
 *  Key VolumeUp
 * @param integer $InstanceID
 */
TCL_VolumeUp($InstanceID);

/*
 *  Key VolumeDown
 * @param integer $InstanceID
 */
TCL_VolumeDown($InstanceID);

/*
 *  Key Mute
 * @param integer $InstanceID
 */
TCL_Mute($InstanceID);

/*
 *  Key TV
 * @param integer $InstanceID
 */
TCL_TV($InstanceID);

/*
 *  Key ChannelUp
 * @param integer $InstanceID
 */
TCL_ChannelUp($InstanceID);

/*
 *  Key ChannelDown
 * @param integer $InstanceID
 */
TCL_ChannelDown($InstanceID);

/*
 *  Send Numbers
 * @param integer $InstanceID
 * @param string $Number
 */
TCL_SendNumber($InstanceID, $Number);

/*
 *  Key List
 * @param integer $InstanceID
 */
TCL_ChList($InstanceID);

/*
 *  Key Source
 * @param integer $InstanceID
 */
TCL_Source($InstanceID);

/*
 *  Key SmartTV
 * @param integer $InstanceID
 */
TCL_SmartTV($InstanceID);

/*
 *  Key Up
 * @param integer $InstanceID
 */
TCL_UP($InstanceID);

/*
 *  Key DOWN
 * @param integer $InstanceID
 */
TCL_DOWN($InstanceID);

/*
 *  Key Left
 * @param integer $InstanceID
 */
TCL_Left($InstanceID);

/*
 *  Key Right
 * @param integer $InstanceID
 */
TCL_Right($InstanceID);

/*
 *  Key OK
 * @param integer $InstanceID
 */
TCL_OK($InstanceID);

/*
 *  Key Back
 * @param integer $InstanceID
 */
TCL_Back($InstanceID);

/*
 *  Key Red
 * @param integer $InstanceID
 */
TCL_Red($InstanceID);

/*
 *  Key Green
 * @param integer $InstanceID
 */
TCL_Green($InstanceID);

/*
 *  Key Yellow
 * @param integer $InstanceID
 */
TCL_Yellow($InstanceID);

/*
 *  Key Blue
 * @param integer $InstanceID
 */
TCL_Blue($InstanceID);

/*
 *  Key Guide
 * @param integer $InstanceID
 */
TCL_Guide($InstanceID);