ruwork/annotation-tools
Annotation tools for Laravel and PHP: read, cache, and validate Doctrine-style annotations with a lightweight parser, helping you wire annotation-driven configuration, routing, or metadata into your app without heavy dependencies or repeated reflection overhead.
app/ for classes carrying a marker — this package's shape tells you what a minimal implementation looks like, which is useful when scoping an internal sprint rather than buying.Consider it only if all of the following are true:
Look elsewhere in essentially every other case:
doctrine/annotations (still maintained) or, better, native PHP 8 attributes with ReflectionAttribute — which removes the docblock-parsing problem entirely and should be your default recommendation in 2024+.symfony/finder + reflection, cover the same ground with maintained code.Net: this is a research artifact, not a candidate dependency. Do not add it to a composer.json you intend to ship.
For executives (30 seconds): We evaluated a small open-source PHP utility for annotation-based code discovery. It is technically interesting but effectively abandoned — no releases in seven years, no downstream users, no documentation. Recommendation: do not adopt. It costs us nothing to skip and would create a maintenance liability if we didn't. The strategic insight it surfaces is worth keeping: modern PHP now supports this pattern natively, so we should standardize on language features rather than third-party annotation libraries.
For engineering leads: Use this repo as a pattern reference only — it shows the minimal shape of a docblock scanner. Do not add it as a dependency. If we need class/annotation discovery, we implement it against PHP 8 attributes and reflection in-house, roughly a day of work, with zero external maintenance risk. If any existing service already pulls this in transitively, flag it for replacement.
The one-line decision: Reject as a dependency; retain as an input to our annotation-vs-attributes architecture decision and our third-party risk checklist.
How can I help you explore Laravel packages today?