PHP code example of navarr / attribute-dependency

1. Go to this page and download the library: Download navarr/attribute-dependency library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

navarr / attribute-dependency example snippets


use Navarr\Attribute\Dependency;
    
// ...
    
#[Dependency(package: 'psr/log', versionConstraint: '^1', reason: 'Use of LoggerInterface::error')]