PHP code example of orpheusnet / logchecker
1. Go to this page and download the library: Download orpheusnet/logchecker 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/ */
orpheusnet / logchecker example snippets
$logchecker = new OrpheusNET\Logchecker\Logchecker();
$logchecker->add_file('path/to/file.log');
list($score, $details, $checksum_state, $log_text) = $logchecker->parse();
rpheusNET\Logchecker\Logchecker;
$logchecker = new Logchecker();
$logchecker->newFile('/path/to/log/file');
$logchecker->parse();
print('Ripper : ' . $logchecker->getRipper() . "\n");
print('Version : ' . $logchecker->getRipperVersion() . "\n");
print('Score : ' . $logchecker->getScore() . "\n");
print('Checksum : ' . $logchecker->getChecksumState() . "\n");
print("\nDetails:\n");
foreach ($logchecker->getDetails() as $detail) {
print(" {$detail}\n");
}
print("\nLog Text:\n\n{$logchecker->getLog()}");