PHPackages                             xepozz/clk-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. xepozz/clk-parser

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

xepozz/clk-parser
=================

KittenHouse \*.clk files Parser

1.0.0(2y ago)04PHPPHP ^8.2

Since Apr 21Pushed 2y ago1 watchersCompare

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

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

KittenHouse \*.clk files Parser
===============================

[](#kittenhouse-clk-files-parser)

[![Latest Stable Version](https://camo.githubusercontent.com/b6edfa77083ff80e1f125c00a1be149beff977aeadb13ab76aa15903f8d37a40/68747470733a2f2f706f7365722e707567782e6f72672f7865706f7a7a2f636c6b2d7061727365722f762f737461626c652e737667)](https://packagist.org/packages/xepozz/clk-parser)[![Total Downloads](https://camo.githubusercontent.com/ab00d7eb9c390f73828dd175235836a9766acd0abd87ef592e5682d590bedf01/68747470733a2f2f706f7365722e707567782e6f72672f7865706f7a7a2f636c6b2d7061727365722f646f776e6c6f6164732e737667)](https://packagist.org/packages/xepozz/clk-parser)[![phpunit](https://github.com/xepozz/clk-parser/workflows/PHPUnit/badge.svg)](https://github.com/xepozz/clk-parser/actions)[![codecov](https://camo.githubusercontent.com/f7c0ce02cdd54b0b2bbca36bc4242acfa5c0b790183eb8ec086696220b8c7456/68747470733a2f2f636f6465636f762e696f2f67682f7865706f7a7a2f636c6b2d7061727365722f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d55524558414f5548544a)](https://codecov.io/gh/xepozz/clk-parser)[![type-coverage](https://camo.githubusercontent.com/4ec6b988fa06e0aa880bd8e37fa430b15dd4e8a71b084217ef1d595160a39cbf/68747470733a2f2f73686570686572642e6465762f6769746875622f7865706f7a7a2f636c6b2d7061727365722f636f7665726167652e737667)](https://shepherd.dev/github/xepozz/clk-parser)

Parses `*.clk` buffers and presents table name, columns and values as separated entities.

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

[](#installation)

```
composer req xepozz/clk-parser
```

Usage
-----

[](#usage)

```
$parser = new \Xepozz\ClkParser\Parser();
$result = $parser->parseContent(file_get_contents('/path/to/file.clk'));

$result->table // access table name
$result->columns // access array of column names
$result->values // access iterable values in a pair of column names: [column => value, ...]
```

Example
-------

[](#example)

```
$parser = new \Xepozz\ClkParser\Parser();

$result = $parser->parseContent(
  string(4) "date"
  [1]=>
  string(5) "email"
  [2]=>
  string(5) "event"
  [3]=>
  string(6) "params"
}
*/

var_dump(iterator_to_array($result->values));
/**
array(3) {
  [0]=>
  array(4) {
    ["date"]=>
    string(4) "1111"
    ["email"]=>
    string(7) "'email'"
    ["event"]=>
    string(9) "'Startup'"
    ["params"]=>
    string(7) "[1,2,3]"
  }
  [1]=>
  array(4) {
    ["date"]=>
    string(4) "2222"
    ["email"]=>
    string(7) "'email'"
    ["event"]=>
    string(7) "'Click'"
    ["params"]=>
    string(2) "[]"
  }
  [2]=>
  array(4) {
    ["date"]=>
    string(5) "-1111"
    ["email"]=>
    string(2) "''"
    ["event"]=>
    string(10) "'Shutdown'"
    ["params"]=>
    string(18) "[-1,'string',3,'']"
  }
}
*/
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

752d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c66e7a3533aa307583d595d0f42c70047d45a59768f474e75c190af10534da26?d=identicon)[xepozz](/maintainers/xepozz)

---

Top Contributors

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

---

Tags

clickhouseclkkittenhouseparserphpparserclickhousekittenhouseclick housekitten houseclk

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/xepozz-clk-parser/health.svg)

```
[![Health](https://phpackages.com/badges/xepozz-clk-parser/health.svg)](https://phpackages.com/packages/xepozz-clk-parser)
```

###  Alternatives

[nikic/php-parser

A PHP parser written in PHP

17.4k902.6M1.8k](/packages/nikic-php-parser)[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k910.8M118](/packages/doctrine-lexer)[erusev/parsedown

Parser for Markdown.

15.0k151.8M732](/packages/erusev-parsedown)[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

2.9k404.0M702](/packages/league-commonmark)[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)

PHPackages © 2026

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