microsoft/tolerant-php-parser
Tolerant PHP parser from Microsoft that builds an AST even from incomplete or syntactically invalid code. Ideal for IDEs, refactoring tools, and static analysis, with error recovery and precise source positions for tokens and nodes.
nikic/php-parser, though they lack the same tolerance for malformed code.Executives: "This MIT-licensed package accelerates our ability to deliver developer productivity tools that handle real-time code analysis—even with incomplete or broken code—reducing development time by months and positioning us to capture market share in the growing developer tooling space. Its proven adoption (896+ stars) ensures reliability with zero legal overhead."
Engineering: "We can leverage this battle-tested, tolerant PHP parser to skip months of low-value work building a custom solution. It’s purpose-built for IDE scenarios, handling edge
How can I help you explore Laravel packages today?