1. Go to this page and download the library: Download setono/dependency-tracker 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/ */
setono / dependency-tracker example snippets
declare(strict_types=1);
use Setono\DependencyTracker\Config;
return static function (Config $config): void {
// Track a full directory recursively
$config->track('vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/Migrations');
// Track a directory but only *.php files, non-recursively
$config->track('vendor/acme/package/config')
->filter('*.php')
->recursive(false);
// Track a single file
$config->track('vendor/doctrine/migrations/src/Version/MigrationStatusCalculator.php');
// Change the output directory (default: .dependency-snapshots)
$config->setOutputDir('.dependency-snapshots');
};