PHPackages                             phplrt/lexer-contracts - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. phplrt/lexer-contracts

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

phplrt/lexer-contracts
======================

A set of phplrt lexer abstractions

3.7.5(1y ago)1168.0k—1.3%6MITPHPPHP ^8.1CI passing

Since Sep 7Pushed 2mo ago1 watchersCompare

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

READMEChangelogDependencies (5)Versions (59)Used By (6)

 [![Phplrt](https://avatars2.githubusercontent.com/u/49816277?s=128)](https://phplrt.org)

Lexer Contracts
---------------

[](#lexer-contracts)

A set of interfaces for abstraction over lexers.

### Resources

[](#resources)

- [Documentation](https://github.com/phplrt/phplrt/blob/master/README.md)
- [Repository](https://github.com/phplrt/phplrt)
    - [Issues](https://github.com/phplrt/phplrt/issues)
    - [Pull Requests](https://github.com/phplrt/phplrt/pulls)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance62

Regular maintenance activity

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

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

Every ~32 days

Recently: every ~0 days

Total

58

Last Release

615d ago

Major Versions

2.3.6 → 3.0.02020-03-05

PHP version history (4 changes)2.0.0PHP &gt;=7.1.3

3.0.0PHP &gt;=7.4

3.1.8PHP ^7.4|^8.0

3.5.2PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/150420?v=4)[Ruslan Sharipov](/maintainers/Serafim)[@serafim](https://github.com/serafim)

---

Top Contributors

[![SerafimArts](https://avatars.githubusercontent.com/u/2461257?v=4)](https://github.com/SerafimArts "SerafimArts (130 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (10 commits)")

---

Tags

compatibilitycontractsinterfacesphplrtstreamstandardsinterfacesinteroperabilitycontractsabstractionsdecouplinglexertokenregextokenizerparsing

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[symfony/translation-contracts

Generic abstractions related to translation

2.6k698.7M432](/packages/symfony-translation-contracts)[symfony/contracts

A set of abstractions extracted out of the Symfony components

3.9k64.6M103](/packages/symfony-contracts)

PHPackages © 2026

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