jpkleemans/attribute-events
57.4
Adequate · 22 September 2026
160
lines of production code
PHP
primary language
7
measurements over time
What this system is
This system is a Laravel package that maps Eloquent model attribute changes to custom event classes. It allows developers to define specific events that trigger when model attributes, accessors, or JSON fields change. The implementation handles various data types and ensures events are only dispatched when actual changes occur.
Features
Initial release of the Laravel Attribute Events package
The repository now includes the full distribution of the 'attribute-events' package, providing a way to map Eloquent model attribute changes to custom event classes. The package allows developers to define a \$dispatchesEvents\ array on models to trigger specific events (such as 'status:shipped' or 'note:\*') when attributes change, supporting both standard attributes and JSON fields. The release includes comprehensive documentation in the README, a MIT license, and configuration files for CI (Travis), code style (PHP CS Fixer), and testing.
(repo-wide) · high confidence
Introduce attribute change events for accessors, JSON, and primitive types
The new \AttributeEvents\ trait enables firing model events when specific attribute values change. It supports detecting changes in standard attributes, accessors, and nested JSON paths. The implementation includes logic to handle \UnitEnum\ values, booleans, and numeric types (float and int) by comparing against expected values, while also maintaining compatibility with Laravel 8 and lower by checking for the existence of \hasAttributeGetMutator\.
src · medium confidence
Test coverage
Added test fixtures for Eloquent model and castable classes; Added test fixtures for order-related events; Added tests for Eloquent model attribute change events.
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 59 → 57 (-1.2)
- Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.
Lenses
- Code Health 99 → 100 (+0.3)
- Architecture 69 → 69 (+0.0)
- Maturity 59 → 49 (-10.3)
- Readiness 45 → 48 (+3.1)
- Security 95 → 95 (+0.3)
Resolved (5)
- Coverage not included — suite not readable by the collector
- Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
- No exposed public API
- Test reliability not included
- dormant codebase — no living knowledge left to concentrate
New (5)
- High: security finding (details withheld)
- Medium: security finding (details withheld)
- No dependency advisory monitoring
- Orphaned files with no living knowledge
- Workflow token permissions not restricted
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
jpkleemans/attribute-events was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 22 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit df2ec34f6348806e11cfc6950cd136fa8d0216df — the exact code this score is about.
- Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-821afab8930d.