degraciamathieu/php-arguments-detector
Detect and analyze function/method arguments in PHP using a lightweight, reflection-based approach. Useful for tooling that needs to inspect call signatures, validate inputs, or generate metadata about parameters and defaults across codebases.
For Executives: "This package helps us ship cleaner, more maintainable code by automatically flagging methods with too many arguments—a common sign of technical debt. By enforcing a simple rule (e.g., ‘no method should have more than 5 arguments’), we reduce bugs, speed up onboarding, and cut review time. It’s a low-effort, high-impact tool that aligns with our quality goals—like adding a ‘spellcheck’ for our codebase."
For Engineering: "This is a lightweight way to enforce argument limits in PHP/Laravel without adding complexity. It integrates into CI/CD (e.g., GitHub Actions) to block PRs with violations, saving us from manual reviews. Think of it as a ‘linter for method signatures’—it won’t catch all issues, but it’ll catch the low-hanging fruit that makes code harder to read and maintain. Easy to adopt, zero runtime overhead, and it plays nicely with existing tools."
How can I help you explore Laravel packages today?