Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/navarr/attribute-dependency
Dependency Attribute (see navarr/dependency-annotation)
https://github.com/navarr/attribute-dependency
Last synced: about 6 hours ago
JSON representation
Dependency Attribute (see navarr/dependency-annotation)
- Host: GitHub
- URL: https://github.com/navarr/attribute-dependency
- Owner: navarr
- Created: 2021-06-22T03:17:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-11T00:57:58.000Z (over 3 years ago)
- Last Synced: 2024-05-01T19:32:07.183Z (6 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dependency Attribute for PHP
This is a composer package to make your static analysis tools happy :)
## Usage
```php
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](https://github.com/navarr/dependency-annotation) for tools to analyse usage.