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

Product Decisions This Supports

  • Enables rapid prototyping of custom language parsers (e.g., DSLs for configuration, query languages, or domain-specific rule engines) where PHP lacks mature alternatives.
  • Build vs Buy: Strong candidate for internal tooling or PoCs due to PHP’s sparse parser-generator ecosystem, but high maintenance risk (last release 2020, 0 dependents) makes it unsuitable for production-critical systems without dedicated ownership.
  • Roadmap implications: Prioritize projects with simple grammars where the team can commit to forking and maintaining the package; avoid for features requiring advanced YACC features (e.g., %union) which remain unimplemented.

When to Consider This Package

  • Adopt when: Building internal scripts, small-scale tools, or PoCs where grammar complexity is low, and the team can accept ownership of maintenance (e.g., forking to fix critical bugs). Ideal for scenarios where existing tools like ANTLR are overkill or incompatible with PHP.
  • Look elsewhere when: Building production systems requiring long-term support, advanced YACC features (e.g., %token-type), or high-throughput parsing. For complex grammars, consider hand-written recursive descent parsers or ANTLR (with PHP bindings); for enterprise needs, commercial parser tools with active support are safer.

How to Pitch It (Stakeholders)

  • Executives: "This package lets us build custom language tools (like configuration systems or query engines) in weeks instead of months—without reinventing the wheel. While it’s not actively maintained, we’ll own its upkeep internally, turning it into a competitive advantage for domain-specific features while avoiding heavy engineering overhead."
  • Engineering: "We’ll use it to generate high-performance parsers from YACC grammars via CI/CD (never at runtime), with semantic actions for AST building. Critical to commit generated code, fork the repo for maintenance, and validate tokenization rigorously. Expect to handle gaps like missing %union support ourselves—this is a tactical win for simple use cases but requires dedicated ownership."
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