PHP code example of dangetsu / access-log-statistic

1. Go to this page and download the library: Download dangetsu/access-log-statistic 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/ */

    

dangetsu / access-log-statistic example snippets

$xslt
use AccessLogParser\Processor;

cation();
$result = $parser->buildStatistic('access.log', new Processor\StandardProcessor());
$json = $parser->format($result, new Format\Json()); //Если нужно преобразовать в какой-то формат(сейчас доступен только JSON)