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.
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui