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

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

navarr/attribute-dependency
===========================

Adds the #\[Dependency\] attribute

v1.0.1(4y ago)02792MITPHP

Since Jun 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/navarr/attribute-dependency)[ Packagist](https://packagist.org/packages/navarr/attribute-dependency)[ GitHub Sponsors](https://github.com/navarr)[ RSS](/packages/navarr-attribute-dependency/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)DependenciesVersions (4)Used By (2)

Dependency Attribute for PHP
============================

[](#dependency-attribute-for-php)

This is a composer package to make your static analysis tools happy :)

Usage
-----

[](#usage)

```
use Navarr\Attribute\Dependency;

// ...

#[Dependency(package: 'psr/log', versionConstraint: '^1', reason: 'Use of LoggerInterface::error')]
```

PHP 7 support
-------------

[](#php-7-support)

While the Attribute only works in PHP8, so long as it does not span multiple lines, it may be included in PHP7 codebases

Tools
-----

[](#tools)

See [navarr/dependency-annotation](https://github.com/navarr/dependency-annotation) for tools to analyse usage.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

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

Total

3

Last Release

1772d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24959115e049fb1d71612462e9106b345b3e0e6126439493514018cd440e8937?d=identicon)[navarr](/maintainers/navarr)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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