Skip to content

faustbrian/attribute-reader

GitHub Workflow Status Latest Version on Packagist Software License Total Downloads


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.

About

Fluent PHP attribute reader for Laravel and modern PHP apps, with a clean API to fetch attributes from classes, methods, properties, constants, parameters, and functions, plus repeatable support, strict query modes, and reflection caching.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages