karim-tao/laravel-violation-logger
A Laravel package for logging violations and policy breaches with structured context, helping you capture, store, and review issues for auditing, debugging, and operational visibility.
Adopt when:
Look elsewhere or wait when:
Required PM follow-through before rollout: inventory downstream consumers, add a snapshot test on the JSON structure, and request a schema version field (or explicit changelog signal) in the payload so future shape changes are detectable at runtime rather than discovered in a broken report.
To executives: This release upgrades our validation output from "something failed" to "here's what failed and how often." That means remediation gets sequenced by impact instead of by discovery order — the same engineering spend, aimed at the highest-frequency problems first. The tradeoff is a small, contained migration: the output format changed, so any report or dashboard reading it needs a short update. Cost is bounded and known; the gain is a prioritization capability we'd otherwise have to build ourselves.
To engineering: Minor version, but a breaking payload change — the third level of the violation JSON is now a map of detail→count rather than a list. Please audit all consumers for positional/iterable access on that level, update fixtures and snapshot tests, and pin the version until the audit closes. Recommend we wrap the payload behind our own normalization layer so the next shape change doesn't propagate through the codebase.
How can I help you explore Laravel packages today?