PHPackages                             antondperera/php-attributes-reader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. antondperera/php-attributes-reader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

antondperera/php-attributes-reader
==================================

Simple PHP Attributes Reader/Parser

0.1.0(2y ago)03.8k↓71.5%[6 issues](https://github.com/antondperera/php-attributes-reader/issues)MITPHPPHP &gt;=8.1

Since Mar 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/antondperera/php-attributes-reader)[ Packagist](https://packagist.org/packages/antondperera/php-attributes-reader)[ RSS](/packages/antondperera-php-attributes-reader/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

PHP Attributes Reader
=====================

[](#php-attributes-reader)

Welcome to PHP Attributes Reader, a lightweight and efficient library designed for effortlessly extracting and working with class, method, and property attributes in PHP 8. With the introduction of attributes in PHP 8, this library simplifies the process of reading and leveraging these attributes in your codebase. Whether you're exploring class, method, or property attributes, PHP Attributes Reader provides a user-friendly interface for seamless attribute retrieval, eliminating the need to deal with PHP's Reflection API directly. Enhance your development experience by easily tapping into the power of PHP 8 attributes with this intuitive and versatile library.

Requirements
------------

[](#requirements)

PHP 8.1 and later.

Installation
------------

[](#installation)

You can install via [Composer](http://getcomposer.org/). Run the following command:

```
composer require antondperera/php-attributes-reader
```

Ensure you are using Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once 'vendor/autoload.php';
```

Getting Started
---------------

[](#getting-started)

Sample codes with simplest usages:

PHP Class with Class, Method and Property Attributes

```
