PHPackages                             neontsun/read-attribute - 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. neontsun/read-attribute

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

neontsun/read-attribute
=======================

Utils for reading attributes

1.1.0(1y ago)0483MITPHPPHP ^8.0

Since Feb 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/neontsun/php-attribute-read)[ Packagist](https://packagist.org/packages/neontsun/read-attribute)[ RSS](/packages/neontsun-read-attribute/feed)WikiDiscussions main Synced 1mo ago

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

php-attribute-read
==================

[](#php-attribute-read)

```
#[\Attribute(\Attribute::TARGET_CLASS)]
final class CustomAttribute {}

#[CustomAttribute]
final class Foo
{

}

use Neontsun\ReadAttribute\ReadAttribute;

final class Controller
{
    use ReadAttribute;

    public function __invoke()
    {
        $attribute = $this->readClassAttribute(Foo::class, CustomAttribute::class);

        if ($attribute instanceof CustomAttribute) {
            // true
        }
    }
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance43

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

446d ago

Major Versions

0.1.0 → 1.1.02025-02-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2b6305517fa57c6bdb36e9cf7ea3ba55c93cfd0f2f5cedd57dec0d51f45ee15?d=identicon)[neontsun](/maintainers/neontsun)

---

Top Contributors

[![neontsun](https://avatars.githubusercontent.com/u/37738773?v=4)](https://github.com/neontsun "neontsun (8 commits)")

---

Tags

phpattributesreading

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/neontsun-read-attribute/health.svg)

```
[![Health](https://phpackages.com/badges/neontsun-read-attribute/health.svg)](https://phpackages.com/packages/neontsun-read-attribute)
```

###  Alternatives

[psalm/attributes

A collection of PHP 8 Attributes that Psalm can understand

19120.0k2](/packages/psalm-attributes)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
