pxgamer / log-browser-check
A simple web server log checker to monitor the browser diversity on websites.
Fund package maintenance!
owenvoke
ecologi.com/owenvoke?gift-trees
Requires
- php: ^7.0
- browscap/browscap-php: ^3.1
Requires (Dev)
- phpunit/phpunit: ^6.4
- squizlabs/php_codesniffer: ^3.1
This package is auto-updated.
Last update: 2024-10-11 14:47:38 UTC
README
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.