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

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

holyshared/attribute
====================

Attribute for Hack

0.1.1(10y ago)07[1 issues](https://github.com/holyshared/attribute/issues)MITHack

Since Oct 3Pushed 10y agoCompare

[ Source](https://github.com/holyshared/attribute)[ Packagist](https://packagist.org/packages/holyshared/attribute)[ RSS](/packages/holyshared-attribute/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

attribute
=========

[](#attribute)

Attribute for Hack

[![Latest Stable Version](https://camo.githubusercontent.com/019958f7f3b586fdbfccc4fca93a7df6e6132144934f8e4498bcb1120999e853/68747470733a2f2f706f7365722e707567782e6f72672f686f6c797368617265642f6174747269627574652f762f737461626c65)](https://packagist.org/packages/holyshared/attribute)[![Build Status](https://camo.githubusercontent.com/31931a1c52827eabd0ed60b90f873a8ed1a78a33f7d9a07b412dea1a86968e6e/68747470733a2f2f7472617669732d63692e6f72672f686f6c797368617265642f6174747269627574652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/holyshared/attribute)[![Dependency Status](https://camo.githubusercontent.com/9757a3ebfd0cd9a42d2bfd85f39c0832251797558ae892f56cfcd18d52cb796e/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536306666336235613139333334303031353030303030312f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/560ff3b5a193340015000001)[![License](https://camo.githubusercontent.com/0a5ff74e85e0ffbc4fb9856a3ad6ffa3c779c9d52f9846d9e0cfb685b9d217fa/68747470733a2f2f706f7365722e707567782e6f72672f686f6c797368617265642f6174747269627574652f6c6963656e7365)](https://packagist.org/packages/holyshared/attribute)

ClassAttribute
--------------

[](#classattribute)

```
name;
    }

}
```

```
>
class TaggedTarget
{
}
```

```
value()); // Tag attribute instance

$attribute = Tag::findByClass(new ReflectionClass(TaggedTarget::class));
var_dump($attribute->value()); // Tag attribute instance
```

MethodAttribute
---------------

[](#methodattribute)

```
name;
    }

}
```

```
>
    public function getName() : string
    {
        return $this->name;
    }

}
```

```
at('getName')->value()); // important

$attributes = Tag::findByClass(new ReflectionClass(TaggedTarget::class));
var_dump($attributes->at('getName')->value()); // important

$attribute = Tag::findByMethod(new ReflectionMethod(TaggedTarget::class, 'getName'));
var_dump($attribute->value()); // important
```

Run the test
------------

[](#run-the-test)

```
composer install
composer test

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

3926d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/70c299d6d6015ee714954aa05e4d0e9c7b1d31318a5d7db5e9bb4e1f70f78afc?d=identicon)[holyshared](/maintainers/holyshared)

---

Top Contributors

[![holyshared](https://avatars.githubusercontent.com/u/167190?v=4)](https://github.com/holyshared "holyshared (23 commits)")

---

Tags

hhvmhackannotationattribute

### Embed Badge

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

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

###  Alternatives

[koriym/attributes

An annotation/attribute reader

443.6M14](/packages/koriym-attributes)

PHPackages © 2026

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