A clean API for working with PHP attributes
Requires PHP 8.4+
composer require cline/attribute-readeruse Cline\AttributeReader\Attributes;
#[Route('/users')]
class UserController {}
$route = Attributes::get(UserController::class, Route::class);
Attributes::has(UserController::class, Route::class); // trueDetailed docs:
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
The MIT License. Please see License File for more information.