承接 skylerkatz/rackspace-log-parser 相关项目开发

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

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

skylerkatz/rackspace-log-parser

Composer 安装命令:

composer require skylerkatz/rackspace-log-parser

包简介

Parse Rackspace Cloud Files Access Logs in an object oriented way

README 文档

README

Latest Version on Packagist Build Status Quality Score Total Downloads

Rackspace Cloud Files provides access logs for all items uploaded to your account. Since log files can be confusing to work with, this package will parse a log file and generate an array of easy to use objects, each representing a row in the log.

Installation

You can install the package via composer:

composer require skylerkatz/rackspace-log-parser

Usage

$parser = new SkylerKatz\RackspaceLogParser('path-to-the-log.log');
$items $parser->parse();

var_dump($items[0]);

object(SkylerKatz\RackspaceLogParser\LogItem)#1 (10) {
  ["raw"]=>
  string(444) "173.203.44.122 - - [15/07/2014:20:52:25 +0000] "GET /5142b6e5e57f760d7ff4-c591437fc634f2a98934b7738b8b8571.r93.cf1.rackcdn.com/image1.png HTTP/1.1" 304 277 "http://www.rackspace.com/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0. 50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8; Microsoft Outlook 14.0. 7109; ms-office; MSOffice 14)""
  ["clientIp"]=>
  string(14) "173.203.44.122"
  ["accessDate"]=>
  object(Carbon\Carbon)#22 (3) {
    ["date"]=>
    string(26) "2014-07-15 20:52:25.000000"
    ["timezone_type"]=>
    int(3)
    ["timezone"]=>
    string(3) "UTC"
  }
  ["method"]=>
  string(3) "GET"
  ["request"]=>
  string(85) "/5142b6e5e57f760d7ff4-c591437fc634f2a98934b7738b8b8571.r93.cf1.rackcdn.com/image1.png"
  ["httpVersion"]=>
  string(8) "HTTP/1.1"
  ["returnCode"]=>
  int(304)
  ["bytesSent"]=>
  int(277)
  ["referrer"]=>
  string(25) "http://www.rackspace.com/"
  ["userAgent"]=>
  string(259) "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0. 50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8; Microsoft Outlook 14.0. 7109; ms-office; MSOffice 14)""
}

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固