PHPackages                             secondtruth/lexer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. secondtruth/lexer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

secondtruth/lexer
=================

Base library for simple lexers

20PHP

Since Oct 2Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Lexer
=========

[](#php-lexer)

Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.

Inspired by the [Doctrine Lexer](https://github.com/doctrine/lexer).

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/82268b2432ab90f14c62445938bc3cd1340dc66e0463035df57891826b418016?d=identicon)[secondtruth](/maintainers/secondtruth)

---

Top Contributors

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

---

Tags

composer-packagelexerphp-librarytokenizer

### Embed Badge

![Health badge](/badges/secondtruth-lexer/health.svg)

```
[![Health](https://phpackages.com/badges/secondtruth-lexer/health.svg)](https://phpackages.com/packages/secondtruth-lexer)
```

###  Alternatives

[stingbo/easyexchange

easy use digital currency exchange sdk

871.3k](/packages/stingbo-easyexchange)

PHPackages © 2026

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