pxgamer/log-browser-check

A simple web server log checker to monitor the browser diversity on websites.

v3.0.4 2017-12-06 10:01 UTC

This package is auto-updated.

Last update: 2024-09-11 14:41:10 UTC


README

Latest Version on Packagist Software License Build Status Style CI Code Coverage Total Downloads

A simple web server log checker to monitor the browser diversity on websites.

Structure

src/
tests/
vendor/

Install

Via Composer

$ composer require pxgamer/log-browser-check

Usage

Supported logs

use pxgamer\LogBrowserChecker\Config;
use pxgamer\LogBrowserChecker\IIS;

$config = new Config([
    'session_column' => 7,
    'ip_column' => 6,
    'root_dir' => __DIR__ . '/logs',
    'site_name' => 'test.com',
    'ignored_ips' => ['127.0.0.1']
]);

$browserCheck = new IIS($config);
$browserCheck->findFiles();
$browserCheck->execute();
		
// Retrieve an array of browsers and their usage counts
$browserCheck->getBrowserStats();

// Retrieve an array of unique session ids
$browserCheck->getSessionsIds();

// Retrieve an array of unique user agents
$browserCheck->getUserAgents();

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email owzie123@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.