navarr / attribute-dependency
Adds the #[Dependency] attribute
Fund package maintenance!
navarr
Installs: 279
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/navarr/attribute-dependency
Requires (Dev)
- php: ^8
This package is auto-updated.
Last update: 2025-09-11 09:35:53 UTC
README
This is a composer package to make your static analysis tools happy :)
Usage
use Navarr\Attribute\Dependency; // ... #[Dependency(package: 'psr/log', versionConstraint: '^1', reason: 'Use of LoggerInterface::error')]
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
See navarr/dependency-annotation for tools to analyse usage.