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

Php Yacc Laravel Package

ircmaxell/php-yacc

PHP port of kmyacc: a YACC/LALR(1) parser generator that takes a YACC grammar (plus a parser template) and generates a PHP parser. Useful for building fast parsers for structured/unstructured languages; generation is resource-heavy, parsing is fast.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package is designed for build-time code generation, fitting Laravel's static code generation patterns (e.g., migrations, factories). However, it lacks Laravel-specific abstractions, requiring manual integration of generated parsers via service providers or facades. The template-based generation approach conflicts with Laravel's convention-over-configuration philosophy, adding complexity.
Integration feasibility: Technically possible but high-effort. Requires Composer installation and build pipeline modifications. The unstable CLI tool (flag behavior changes between releases) and lack of versioned API make integration brittle. PHP 8.1+ compatibility aligns with modern Laravel, but no guarantees for future versions.
Technical risk: High. Critical risks include: (1) No maintenance since 2020 (security/compatibility vulnerabilities), (2) NOASSERTION license (legal uncertainty), (3) Unresolved bugs in core algorithms (e.g., conflict resolution), (4) Missing critical features like %union support, (5) Minimal test coverage.
Key questions: (1) Are there maintained forks addressing these gaps? (2) How to handle PHP version upgrades if the package breaks? (3) Is there a viable alternative (e.g., ANTLR-PHP, custom parser)? (4) What's the fallback if critical bugs

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