PHP code example of gioco-plus / grabber-log

1. Go to this page and download the library: Download gioco-plus/grabber-log 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/ */

    

gioco-plus / grabber-log example snippets


use GiocoPlus\GrabberLog\GrabberLog;

/**
 * GrabberLog constructor.
 * @param string $vendorCode
 * @param array $options
 * @throws \Exception
 */
 
$grabberLog = new GrabberLog($vendorCode, $options);

$grabberLog->running($start, $extraParams);

$grabberLog->complete($extraParams);

$grabberLog->fail($extraParams, $options);

$grabberLog->lastLog($filter);

['start' => $startTime, 'end' => $endTime] = $grabberLog->nextGrabberTime(
                    $pastMinutes,
                    $longTimeRang,
                    ['bufferNowMin' => $bufferMin]
                );