PHP code example of sjdskl / swxbot

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

    

sjdskl / swxbot example snippets


#use process run tasks, your task need extends abstractTasks
$process->runTask(new \Library\Tasks\TzgLog($swxbot), 
array(
    'php-act-root-dir' => '/opt/web-data/php-act',
    'sleep_time' => 5,
    'monitor_files' => array('sql_error')
), 
'swxbot-log-notify');