composer-deps-analyzer icon indicating copy to clipboard operation
composer-deps-analyzer copied to clipboard

Add feature to exclude packages

Open vishwarajanand opened this issue 1 year ago • 1 comments

I want to exclude "some" packages (but not all dev dependencies) from the generated graph, can I have something like this?

<?php

$analyzer = new \JMS\Composer\DependencyAnalyzer();
// $excludedPackages can contain packages which I dont want, say `phpunit`
$graph = $analyzer->analyze($dir, $excludedPackages);

vishwarajanand avatar May 09 '23 12:05 vishwarajanand