PHPackages                             lee-to/fast-attributes - 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. lee-to/fast-attributes

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

lee-to/fast-attributes
======================

Simplifying PHP Attribute Management

0.3.0(1y ago)2132.3k↓15.3%5MITPHPPHP ^8.0|^8.1|^8.2|^8.3|^8.4CI passing

Since Mar 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lee-to/fast-attributes)[ Packagist](https://packagist.org/packages/lee-to/fast-attributes)[ Docs](https://cutcode.dev)[ RSS](/packages/lee-to-fast-attributes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (5)

### Fast Attributes

[](#fast-attributes)

### Usage

[](#usage)

```
// All class attributes
$classAttributes = Attributes::for(ClassWithAttributes::class)->get();
```

```
// Only SomeAttribute class attributes
$someAttributes = Attributes::for(ClassWithAttributes::class)
    ->attribute(SomeAttribute::class)
    ->get();
```

```
// Only SomeAttribute instance
$someAttribute = Attributes::for(ClassWithAttributes::class)
    ->attribute(SomeAttribute::class)
    ->first();
```

```
// SomeAttribute variable property
$someAttribute = Attributes::for(ClassWithAttributes::class)
    ->attribute(SomeAttribute::class)
    ->first('variable');
```

```
// Method parameter attributes
$someAttribute = Attributes::for(ClassWithAttributes::class)
    ->method('someMethod')
    ->parameter('variable')
    ->get();
```

```
$someAttribute = Attributes::for(ClassWithAttributes::class)
    ->constant('VARIABLE')
    ->property('variable')
    ->method('someMethod')
    ->parameter('variable')
    ->get();
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance44

Moderate activity, may be stable

Popularity36

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity51

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 ~173 days

Total

3

Last Release

444d ago

PHP version history (2 changes)0.1.0PHP ^8.0|^8.1|^8.2

0.3.0PHP ^8.0|^8.1|^8.2|^8.3|^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1861327?v=4)[Danil Shutsky](/maintainers/lee-to)[@lee-to](https://github.com/lee-to)

---

Top Contributors

[![lee-to](https://avatars.githubusercontent.com/u/1861327?v=4)](https://github.com/lee-to "lee-to (9 commits)")

---

Tags

phpattributes

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lee-to-fast-attributes/health.svg)

```
[![Health](https://phpackages.com/badges/lee-to-fast-attributes/health.svg)](https://phpackages.com/packages/lee-to-fast-attributes)
```

###  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)
