PHP code example of chronostep / chronoslack

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

    

chronostep / chronoslack example snippets


$error = ['status' => 404, 'message' => 'Not found!'];

SlackLog::error($error);

// Use logging guard if not specify `LOG_SLACK_LOG` in the environment.
if (SlackLog::isErrorEnabled()) {
    SlackLog::error($error);
}

LOG_SLACK_WEBHOOK_URL=
LOG_SLACK_NAME=
LOG_SLACK_LOG=
LOG_SLACK_CHANNEL=