Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Lexer Laravel Package

doctrine/lexer

Doctrine Lexer is a lightweight base library for building lexers used in top-down, recursive descent parsers. It powers tokenization in Doctrine projects like Annotations and ORM (DQL), providing a reusable foundation for custom language parsing.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: Doctrine Lexer is a lightweight, standalone utility designed for building custom parsers (e.g., DSLs, query languages) and integrates seamlessly into Laravel's modular architecture. Its use in Doctrine ORM/DQL demonstrates real-world production suitability. Ideal for projects requiring lexical analysis of custom syntax (e.g., custom query builders, configuration parsers), but irrelevant for standard Laravel applications without parsing needs.

Integration feasibility: Straightforward via Composer (composer require doctrine/lexer). Compatibility depends on PHP version: v3.0.0+ requires PHP 8.1+ (aligned with Laravel 10+), while v2.x supports older PHP versions (e.g., Laravel 8/9). No complex bootstrapping required—simply instantiate the lexer in custom services.

Technical risk: Low overall due to Doctrine ecosystem maturity and consistent patch releases. Primary risks include:

  • PHP version mismatch (e.g., using v3.0+ on PHP 7.4).
  • Limited direct dependents (0 on Packagist), though it's a transitive dependency for Doctrine ORM/Annotations (indicating indirect stability).
  • Minimal
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport