shipmonk/name-collision-detector
Fast CLI tool to detect duplicate names in PHP code: classes, interfaces, traits, enums, functions, and constants defined multiple times in the same namespace. Scans thousands of files in seconds, supports config/excludes, exits non-zero on collisions.
Adopt when:
Look elsewhere when:
Executives: "This tool prevents costly production incidents caused by ambiguous class definitions – a known source of hard-to-debug failures that can delay deployments or cause outages. At under $0 in licensing cost and requiring minimal engineering time to implement, it eliminates a recurring source of technical debt while protecting revenue-generating systems from unpredictable failures."
Engineering: "Integrates in <5 minutes via Composer, runs in <2 seconds for 10k files, and catches edge-case collisions that only surface during specific test runs. It complements your existing CI pipeline without adding complexity – just add a single command to your build process to prevent 'works on my machine' bugs caused by class name conflicts. No configuration needed out-of-the-box, with optional JSON tuning for complex projects."
How can I help you explore Laravel packages today?