composer-unused/symbol-parser
composer-unused/symbol-parser is a small toolkit that parses PHP symbols from a Composer package, helping tools like composer-unused detect what code is actually referenced. Useful for analyzing dependencies, exports, and usage across a project.
This package enables precise analysis of symbol usage within Composer dependencies, directly supporting decisions around dependency optimization, code quality improvements, and technical debt reduction. It provides a foundation for building tools that identify unused classes, functions, or interfaces across projects, which is critical for maintaining lean codebases and reducing security surface area. For build-vs-buy decisions, it eliminates the need to develop a custom symbol parser from scratch, saving engineering resources and accelerating delivery of dependency management features. Key use cases include CI/CD pipeline integrations for automated dependency audits, internal developer tools for codebase health monitoring, and integration with package management systems to enforce dependency hygiene policies.
Consider this package when building tools that require detailed symbol-level analysis of Composer-based PHP projects (e.g., dependency cleanup utilities, static analysis tools for unused code). It’s ideal for teams already using Composer and needing a lightweight, MIT-licensed solution for parsing class/function references. Avoid it if your use case involves non-Composer PHP code (e.g., standalone scripts), requires enterprise-grade support or SLAs, or demands advanced static analysis beyond symbol parsing (e.g., runtime behavior analysis). Given its low GitHub stars (14) and minimal community activity, it’s less suitable for mission-critical systems where high adoption or long-term maintenance guarantees are required—evaluate alternatives
How can I help you explore Laravel packages today?