# theseer/tokenizer

A small library for converting tokenized PHP source code into XML (and potentially other formats)

Repository: https://github.com/theseer/tokenizer
Canonical: https://ross.abutalabs.com/products/tokenizer
Language: PHP
License: NOASSERTION
License Family: other
Topics: php, tokenizer, xml
Last push: 2026-02-03T14:16:03+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 65, release rhythm 60, longevity 100
- inputs: {"age_days": 3437, "days_push": 211, "days_rel": 268, "gap_med": 3, "n_releases_24m": 4}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5195, forks 24 (observed 2026-08-28T04:09:12.031135+00:00)

## What it is
A small PHP library that tokenizes PHP source code and serializes the resulting tokens into XML (and potentially other formats). It is commonly used as a dependency in PHP tooling such as PHPUnit's code coverage reporting.

## Use cases
- convert PHP source code tokens to XML
- analyze PHP source code structure programmatically
- generate XML representations of tokenized PHP files
- build code coverage or static analysis tools for PHP
- process PHP tokens for custom tooling

## When to choose
- you need to serialize tokenized PHP source into XML
- you are building PHP code analysis or coverage tooling
- you need a lightweight, Composer-installable tokenizer utility

## When to avoid
- you need to tokenize languages other than PHP
- you need a full static analysis or AST tool rather than token-level output
- you need JSON or other output formats without writing your own serializer

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, developer-tools
- domain: developer-tools, parsers
- platform: php, cross-platform
- tags: tokenizer, xml-serialization, php-source-code, code-analysis, php

## Member repositories
- theseer/tokenizer (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:12.031135+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:01:43.674770+00:00, confidence not recorded.
  - readme: https://github.com/theseer/tokenizer (fetched 2026-08-28T04:09:12.031135+00:00, sha a194c62d2bd8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
