cline / attribute-reader
A clean API for working with PHP attributes
3.0.1
2026-03-04 06:12 UTC
Requires
- php: ^8.5.0
Requires (Dev)
- cline/coding-standard: ^2.0
- orchestra/testbench: ^10.9
- symfony/var-dumper: ^7.4.6
README
attribute-reader
A clean API for working with PHP attributes
Requirements
Requires PHP 8.4+
Installation
composer require cline/attribute-reader
Usage
use Cline\AttributeReader\Attributes; #[Route('/users')] class UserController {} $route = Attributes::get(UserController::class, Route::class); Attributes::has(UserController::class, Route::class); // true
Detailed docs:
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.