Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Attribute Reader Laravel Package

spatie/php-attribute-reader

Lightweight PHP 8+ utility to read native attributes from classes, methods, properties, and parameters using reflection. Designed for simple, fast attribute discovery in frameworks and libraries, with an API that fits common annotation-style workflows.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables incremental adoption of PHP 8 attributes without full codebase refactoring, aligning with roadmap flexibility and modernization goals
  • Eliminates need for custom reflection implementations, reducing build vs buy tradeoffs and accelerating feature delivery
  • Supports critical use cases including attribute-based routing, validation schemas, DI configuration, and ORM mapping through consistent metadata inspection
  • Provides a unified API for attribute and docblock inspection, reducing integration complexity across teams and systems

When to Consider This Package

  • Adopt when your project uses PHP 8+ and requires runtime attribute inspection for custom framework features, API tooling, or metadata-driven logic
  • Choose when needing a minimal, dependency-light solution that avoids heavy frameworks (e.g., Symfony's full reflection stack)
  • Ideal for scenarios requiring compatibility with both native attributes and legacy docblock annotations during phased migrations
  • Look elsewhere if you need advanced reflection beyond attribute reading (e.g., AST manipulation), are on PHP <8.0, or use a framework with built-in attribute support (e.g., Laravel's routing attributes)

How to Pitch It (Stakeholders)

"This MIT-licensed package delivers a lightweight, battle-tested solution for reading PHP 8 attributes and docblocks with minimal overhead. For executives, it accelerates feature development by enabling modern attribute-driven architecture without reinventing the wheel—reducing engineering costs and technical debt. For engineers, it simplifies reflection workflows with an ergonomic API, eliminating boiler

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log