PHPackages                             browscap/http-access-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. browscap/http-access-log-parser

ArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

browscap/http-access-log-parser
===============================

Parses Http access logs

11PHP

Since Dec 29Pushed 8y ago2 watchersCompare

[ Source](https://github.com/browscap/http-access-log-parser)[ Packagist](https://packagist.org/packages/browscap/http-access-log-parser)[ RSS](/packages/browscap-http-access-log-parser/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Browser Capabilities PHP Project - Logfile reader
=================================================

[](#browser-capabilities-php-project---logfile-reader)

This is a log file reader for apache log files to parse useragents.

[![Build Status](https://camo.githubusercontent.com/704baf46b3718a6af541a48ca25b4c6d47e013e6edd4913c8581dfbb825e40e9/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f62726f77736361702f62726f77736361702d66696c652d7265616465722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/browscap/browscap-file-reader)

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

[](#installation)

Run the command below to install via Composer

```
composer require browscap/http-access-log-parser
```

the CLI Log command
-------------------

[](#the-cli-log-command)

The `log` command parses a single access log file or a directory with access log files and writes the results into an output file.

```
vendor/bin/log-parser browscap:log
```

### options

[](#options)

- `output` (required) the path to a log file where the results are stored
- `cache` (optional) the relative path to your cache directory
- `log-file` (optional) the relative path to an access log file
- `log-dir` (optional) the relative path to directory with the log files
- `include` (optional) a glob compatible list of files which should be included, only used in comination with the `log-dir` option
- `exclude` (optional) a glob compatible list of files which should be excluded from parsing, only used in comination with the `log-dir` option

NOTE: One of both options `log-file` and `log-dir` is required. NOTE: At the moment only Apache access logs are supported.

Issues and feature requests
---------------------------

[](#issues-and-feature-requests)

Please report your issues and ask for new features on the GitHub Issue Tracker at

Please report incorrectly identified User Agents and browser detect in the browscap.ini file here:

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2734194006e4987a8e12379a63b4f6c0a4478b5818ea7ce677499b1f714a92d2?d=identicon)[asgrim](/maintainers/asgrim)

![](https://www.gravatar.com/avatar/5fea77dd303122241a6caac15ea7456607bcb6f5db869fc8fc9eaf3ec0630a84?d=identicon)[mimmi20](/maintainers/mimmi20)

![](https://avatars.githubusercontent.com/u/136907?v=4)[Jay Klehr](/maintainers/jaydiablo)[@jaydiablo](https://github.com/jaydiablo)

---

Top Contributors

[![mimmi20](https://avatars.githubusercontent.com/u/1120192?v=4)](https://github.com/mimmi20 "mimmi20 (8 commits)")[![asgrim](https://avatars.githubusercontent.com/u/496145?v=4)](https://github.com/asgrim "asgrim (2 commits)")

---

Tags

php

### Embed Badge

![Health badge](/badges/browscap-http-access-log-parser/health.svg)

```
[![Health](https://phpackages.com/badges/browscap-http-access-log-parser/health.svg)](https://phpackages.com/packages/browscap-http-access-log-parser)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M41](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

46143.1k6](/packages/jstewmc-rtf)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

112.9k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
