Weave 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

Parser Laravel Package

laravie/parser

Laravie Parser is a PHP source-code parsing library for Laravel applications. It offers a simple API for tokenizing and traversing code, inspecting classes, methods, and syntax trees, and integrating static analysis or code-generation tools into your projects.

Deep Wiki
Context7

Product Decisions This Supports

  • Feature feasibility for developer tooling: Enables code generators, documentation generators, package discovery, and lightweight static-analysis features inside Laravel applications without bootstrapping or autoloading target code.
  • Build vs. buy/borrow: Reduces the need to build a custom PHP parser layer by wrapping nikic/php-parser; suitable when the product needs structured class/member metadata quickly rather than a full static-analysis engine.
  • Roadmap prioritization: Supports internal developer-platform initiatives such as Artisan scaffolding, package auto-discovery, convention auditing, upgrade assistants, and generated documentation.
  • Architecture choices: Encourages source-based inspection over runtime reflection where loading code would be risky, slow, or side-effect-prone.
  • Use-case triage: Best for bounded parsing needs—classes, methods, properties, namespaces, imports, parameters—rather than deep semantic analysis or cross-project dependency graphs.

When to Consider This Package

Consider it when:

  • You are building a Laravel package, generator, or internal tool that needs to inspect PHP source files without autoloading them.
  • You need structured metadata for classes, methods, properties, namespaces, imports, or parameters, and the scope is relatively contained.
  • You want an ergonomic Laravel-friendly layer over nikic/php-parser and are comfortable falling back to the underlying AST for advanced cases.
  • The team values MIT licensing, quick integration, and an extensible AST foundation over a heavier static-analysis platform.
  • You can tolerate a thin-wrapper dependency and validate maintenance risk with a small spike or pinned version.

Look elsewhere when:

  • You need robust type-aware analysis, cross-file resolution, taint analysis, or high-scale code intelligence; use PHPStan, Psalm, or direct nikic/php-parser with a dedicated architecture.
  • Runtime reflection is sufficient and side effects are not a concern.
  • You require strong long-term maintenance guarantees, broad community adoption, or active roadmap signals beyond the package’s current maturity.
  • The product is not Laravel/PHP-centric or needs multi-language parsing.
  • Parsing is core to the product rather than an enabling tool; in that case, own the AST layer or choose a more specialized analysis engine.

How to Pitch It (Stakeholders)

For executives: This is a low-cost, MIT-licensed accelerator for developer tooling and code-generation features. It lets us inspect Laravel/PHP source safely without loading it, which can speed up internal tooling and reduce custom parser work. It should be treated as an enabling dependency, not core infrastructure, and validated with a short spike before broader adoption.

For engineering: It provides a Laravel-friendly API over the mature nikic/php-parser for reading namespaces, imports, classes, methods, properties, and parameters without autoloading. That makes it useful for generators, discovery, documentation, and lightweight analysis. The trade-off is that it is a thin wrapper with modest adoption signals, so we should pin versions, keep a direct php-parser fallback path for advanced AST work, and avoid relying on it for deep static analysis.

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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager