承接 riimu/accesslogstats 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

riimu/accesslogstats

Composer 安装命令:

composer require riimu/accesslogstats

包简介

Access log parsing and statistics generation.

README 文档

README

This library is intended for generating useful statistics from access logs commonly generated by server software such as apache. Currently this library has been written mostly for my own needs and purposes to provide me with the details I want to know. Thus, the code will not be well documented and it may not be fit for all general purposes.

Usage

The basic idea is to have the parser and supply it with reports that consist of filters and views. Filters are used to remove rows not relevant to that report and views determine what kind of information should be extracted from the row.

For example:

<?php
$parser = new Riimu\LogParser\LogParser(
    new Riimu\LogParser\Source\AccessLogSource('access.log'),
    'output');
$report = new Riimu\LogParser\Report('Referrers for www subdomain');
$report->addFilter(new Riimu\LogParser\Filter\FilterDomain('www.example.com'));
$report->addView((new Riimu\LogParser\View\ReferrerView())
    ->addInternalDomain('www.example.com'));

$parser->addReport($report);
$parser->process();
$parser->saveJSON();

The above code will generate the information about referrers for the subdomain 'www' of your 'example.com' site.

Credits

This library is copyright 2013 to Riikka Kalliomäki

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-12-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固