PHP code example of orinokko / state-monitor

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

    

orinokko / state-monitor example snippets


->middleware('state-monitor-errors')

Monitor::validateRequest($type,$url,$method,$params=[],$user='',$domain='')

Monitor::storeEvent($message,$priority=0,$url='',$method='',$params=[],$user='',$domain='')

STATE_MONITOR_LOG_QUERIES=false
bash
php artisan monitor:install
bash
php artisan vendor:publish --provider='Orinoko\StateMonitor\MonitorServiceProvider' --tag='public' --force