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

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

ssmiff/attribute-collector
==========================

1.0.2(8mo ago)08MITPHP

Since Nov 4Pushed 8mo agoCompare

[ Source](https://github.com/ssmiff/attribute-collector)[ Packagist](https://packagist.org/packages/ssmiff/attribute-collector)[ RSS](/packages/ssmiff-attribute-collector/feed)WikiDiscussions main Synced today

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

Attribute Collector
===================

[](#attribute-collector)

Collect all public class/method/properties attributes into a single registry.

Usage
-----

[](#usage)

There are two built in memoizers, `FileMemoizer` and `InMemoryMemoizer`. These can optionally be used to cache the results of the discovery process.

Example:

```
use Ssmith\AttributeCollector\Cache\FileMemoizer;
use Ssmith\AttributeCollector\ComposerClassMap;
use Ssmith\AttributeCollector\Tests\fixtures\Attributes\TargetClass;

include __DIR__ . '/vendor/autoload.php';

$classMap = new ComposerClassMap([__DIR__ . '/tests/fixtures']);
$memoize = new InMemoryMemoizer();
$logger = new PrsLogger();
$discovery = new Ssmith\AttributeCollector\ClassAttributeCollector($classMap, $memoize, $logger);

$registry = $discovery->buildRegistry();

$allAttributesByName = $registry->forAttribute(MyAttribute::class);

$allAttributesOnClass = $registry->forClass(MyClass::class);
$allAttributesOnClassMethod = $registry->forMethod(MyClass::class, 'myMethod');
$allAttributesOnClassProperty = $registry->forProperty(MyClass::class, 'myProperty');
$distinctAttributes = $registry->count();
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance62

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

3

Last Release

241d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[symfony/lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource

514139.2M692](/packages/symfony-lock)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)

PHPackages © 2026

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