PHP code example of denzo / riplogchecker

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

    

denzo / riplogchecker example snippets


/* Make sure we use the RipLogChecker class*/
use RipLogChecker\RipLogChecker;

/* Load a log file */
$logFile = file_get_contents('eac_rip.log');

/* Create new logchecker object */
$logChecker = new RipLogChecker($logFile);

/* Retrieve the log score */
$score = $logChecker->getScore();

/* Retrieve the Json */
$logChecker->getScorer->getParser()->getJson();