huluti/doctrine-relations-analyser
Doctrine Relations Analyser inspects Doctrine ORM entity associations to flag missing or misconfigured relations—such as absent inversedBy/mappedBy, cascade, orphanRemoval, and nullable settings—helping you catch mapping issues early and keep your model consistent.
Adopt when all of these hold:
schema:dump, ER-diagram generators, static analysis) or a generic PHP analyzer.Look elsewhere when:
Executives: A low-cost, low-commitment diagnostic for our data model. It de-risks schema changes and refactors by showing us coupling before we commit engineering time. No production dependency, MIT-licensed, removable in an afternoon — the downside is capped at the cost of a short spike.
Engineering: A dev-only Symfony bundle that inspects Doctrine entity relationships and reports on mapping problems. We'd run it locally and optionally in CI, pinned to a version and wrapped behind our own command so it's swappable. Honest caveat: it's a small community project with one maintainer, so we treat it as an internal utility, not a dependency we rely on — MIT means we can fork if it goes stale. For teams on Eloquent, this doesn't apply and we'd evaluate Laravel-native alternatives instead.
How can I help you explore Laravel packages today?