PHP code example of selfphp / php-dependency-inspector
1. Go to this page and download the library: Download selfphp/php-dependency-inspector 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/ */
selfphp / php-dependency-inspector example snippets
bash
php bin/phpdi analyse [--path=...] [--only-unused] [--output=...]
yaml
dependency-audit:
image: php:8.2
script:
- apt-get update && apt-get install -y unzip git
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install
- php bin/phpdi audit --exit-on-unused --exit-on-outdated=major --threshold=0