1. Go to this page and download the library: Download binarybuilds/cronbuzz-php 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/ */
binarybuilds / cronbuzz-php example snippets
\BinaryBuilds\CronBuzzPHP\CronBuzzTask::run('your-monitor-uuid', function (){
// Add your code here
});
$run = new \BinaryBuilds\CronBuzzPHP\Run( 'your-monitor-uuid' );
$run->start();
try{
// Add your code here
$run->complete();
}catch (\Exception $exception){
$run->fail( $exception->getMessage() );
// Handle your exceptions here
}