PHPackages                             itscript/sphinxsearch-query-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. itscript/sphinxsearch-query-log-parser

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

itscript/sphinxsearch-query-log-parser
======================================

SphinxSearch query log parser

1.0.0(8y ago)167MITPHPPHP ^5.6 || ^7.0

Since Jul 28Pushed 8y ago3 watchersCompare

[ Source](https://github.com/ITScript/SphinxSearchQueryLogParser)[ Packagist](https://packagist.org/packages/itscript/sphinxsearch-query-log-parser)[ RSS](/packages/itscript-sphinxsearch-query-log-parser/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

SphinxSearchQueryLogParser
==========================

[](#sphinxsearchquerylogparser)

By default parser supports formats:

```
[Fri Jun 29 21:17:58 2007] 0.004 sec 0.004 sec [all/0/rel 35254 (0,20)] [lj] test
[Fri Jun 29 21:20:34 2007] 0.024 sec 0.024 sec [all/0/rel 19886 (0,20) @channel_id] [lj] test

```

Installation
============

[](#installation)

You can install directly via Composer:

```
$ composer require "itscript/sphinxsearch-query-log-parser":"^1.0"
```

Basic usage
-----------

[](#basic-usage)

```
$log_line = '[Fri Jun 29 21:17:58 2007] 0.004 sec 0.004 sec [all/0/rel 35254 (0,20)] [lj] test';

$parser = new \ITS\SphinxSearchQueryLogParser\Parser();

/** @var \ITS\SphinxSearchQueryLogParser\Log $log */
$log = $parser->parse($log_line);

// it is equal to
$log = (new \ITS\SphinxSearchQueryLogParser\Log())
    ->setQueryDate(new \DateTimeImmutable('2007-06-29 21:17:58'))
    ->setRealTime(0.004)
    ->setWallTime(0.004)
    ->setMatchMode('all')
    ->setFiltersCount(0)
    ->setSortMode('rel')
    ->setTotalMatches(35254)
    ->setOffset(0)
    ->setLimit(20)
    ->setIndexName('lj')
    ->setQuery('test');
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22a8e1dc4bbf850fdf22f23ac786c3218e29c8f1acd82b6357e5f6e05f513782?d=identicon)[utlime](/maintainers/utlime)

---

Top Contributors

[![utlime](https://avatars.githubusercontent.com/u/9943271?v=4)](https://github.com/utlime "utlime (3 commits)")

---

Tags

parsersphinxsearch

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/itscript-sphinxsearch-query-log-parser/health.svg)

```
[![Health](https://phpackages.com/badges/itscript-sphinxsearch-query-log-parser/health.svg)](https://phpackages.com/packages/itscript-sphinxsearch-query-log-parser)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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