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 Token Analyzer Laravel Package

imanghafoori/php-token-analyzer

Analyzes PHP code tokens without execution—like reflection but pure PHP. Framework-agnostic, lightweight dependency extracted from Laravel-Microscope. Supports PHP 7.4+ with automated tests for accuracy. Extract class/method details, token types, and structure effortlessly. Ideal for static analysis...

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables custom static analysis for code quality, refactoring, and linting without executing code
  • Framework-agnostic design allows integration into any PHP project or toolchain (e.g., internal tooling, custom CI checks)
  • Reduces build-vs-buy tradeoff by providing a proven token-level analysis foundation instead of reinventing core parsing logic
  • Supports roadmap initiatives for automated code governance (e.g., enforcing company-wide coding standards, detecting deprecated patterns in legacy code)
  • Ideal for lightweight use cases where full static analysis tools (e.g., PHPStan, Psalm) are over-engineered

When to Consider This Package

  • ✅ When you need simple token-level analysis (e.g., detecting specific syntax patterns, code style rules, or custom linting)
  • ✅ For projects requiring framework-agnostic static analysis without runtime dependencies
  • ✅ If existing tools like PHPStan/PSALM are too heavy for targeted, narrow-scope checks
  • ❌ When comprehensive static analysis (type checking, dependency analysis, security scanning) is required
  • ❌ If long-term maintenance is critical (low activity since 2022, zero dependents, minimal community support)
  • ❌ For production security scanning or complex refactoring workflows (use specialized tools like RIPS, Snyk, or
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
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
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests