composer-unused/contracts
Shared contract interfaces used by composer-unused. This package provides the stable API boundary between composer-unused components, enabling versioned compatibility and easier extension without depending on the full application.
This package provides interfaces (contracts) used by composer-unused, a tool to detect unused Composer dependencies. As a developer, you’ll rarely interact with it directly — it’s consumed by the main composer-unused CLI tool. To begin:
composer require --dev composer-unused/composer-unused.vendor/bin/composer-unused to scan your project for unused dependencies.composer.json accordingly.composer-unused/contracts package is installed transitively as a dependency and contains interfaces like FilterInterface, ReportInterface, and DependencyInterface — only relevant if you’re extending or customizing the tool.composer_unused/contracts’ ReportInterface to generate custom output formats (e.g., JSON, GitHub Actions annotations, or Markdown summaries).FilterInterface to exclude specific dependencies (e.g., dev-only packages, framework internals) from analysis.PackageInterface instances).^2.0 without verifying compatibility with your version of composer-unused.composer-unused/composer-unused when upgrading, as breaking changes may ripple into the contracts.src/Config.php or CLI options).new SomeContract() — the contracts only matter when extending. If your project doesn’t require customization, ignore this package entirely.-vvv) in composer-unused to see how filters/reports are instantiated — helpful when your custom implementation isn’t invoked.How can I help you explore Laravel packages today?