PHPackages                             mvar/apache2-log-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mvar/apache2-log-parser

AbandonedArchivedLibrary

mvar/apache2-log-parser
=======================

Apache2 access and error logs parser

v2.1.0(10y ago)30184.7k↓35.6%9[2 issues](https://github.com/mvar/apache2-log-parser/issues)1MITPHPPHP &gt;=5.4

Since Oct 9Pushed 10y ago3 watchersCompare

[ Source](https://github.com/mvar/apache2-log-parser)[ Packagist](https://packagist.org/packages/mvar/apache2-log-parser)[ RSS](/packages/mvar-apache2-log-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (1)

Apache web server access and error log parser
=============================================

[](#apache-web-server-access-and-error-log-parser)

[![Latest Stable Version](https://camo.githubusercontent.com/1a4ddcff4206748fb824d8670065a7d6d43ec9a180aaebf4704e95f51935ffc0/68747470733a2f2f706f7365722e707567782e6f72672f6d7661722f617061636865322d6c6f672d7061727365722f762f737461626c65)](https://packagist.org/packages/mvar/apache2-log-parser)[![Build Status](https://camo.githubusercontent.com/6639fb36914c909f86989c4c792b80172009a7bcd334a8712fdd0c3860ed5aa0/68747470733a2f2f7472617669732d63692e6f72672f6d7661722f617061636865322d6c6f672d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mvar/apache2-log-parser)[![Code Coverage](https://camo.githubusercontent.com/8a54e9f6076ec89a75a1e2a4ad5e856c646f4b0abcd45701bbaeefbb7818e36c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d7661722f617061636865322d6c6f672d7061727365722f6261646765732f636f7665726167652e706e673f733d63346636333130316332643238373761326130363233623361373565653138623637363336623937)](https://scrutinizer-ci.com/g/mvar/apache2-log-parser/)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/67bd323c5e64d6f3ff698cda577e797f9da47e8b7029ddab71cd7bbb8a051c35/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d7661722f617061636865322d6c6f672d7061727365722f6261646765732f7175616c6974792d73636f72652e706e673f733d32656238386630313032363163326263373065393639636239383130376135373334326233353433)](https://scrutinizer-ci.com/g/mvar/apache2-log-parser/)

Installation
------------

[](#installation)

This library can be found on [Packagist](https://packagist.org/packages/mvar/apache2-log-parser). The recommended way to install this is through [Composer](https://getcomposer.org):

```
composer require mvar/apache2-log-parser:dev-master
```

Features
--------

[](#features)

- Apache2 log lines parsing
    - Access log
    - Error log (currently, for Apache 2.2 and older)
- Log files iterator
- Low memory footprint even with huge files

Usage
-----

[](#usage)

### Parsing single Apache access log line

[](#parsing-single-apache-access-log-line)

```
