PHP code example of docnet / matt-client

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

    

docnet / matt-client example snippets


Docnet\MATT::expect('My cron finished OK')->every('15m')->sms('07777123456');

Docnet\MATT::expect('Some horrible error')->never()->email('[email protected]');

Docnet\MATT::expect('Some other horrible error')->never()->email('support');

Docnet\MATT::expect('My cron finished OK')->every('5m')->sms('07777123456');

Docnet\MATT::expect('My cron finished OK')->every('15m')->sms('07777123456');

Docnet\MATT::expect('Clustered cron')->from('cluster')->every('hour')->email('support');

MATT::expect('Some other horrible error')->cancel();

Docnet\MATT::expect('Clustered cron')->from('cluster')->every('hour')->email('support')->suppress_watch_message();

Docnet\MATT::expect('Clustered cron')->cancel()->suppress_watch_message();