Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Unused Scanner Laravel Package

insolita/unused-scanner

Laravel package that scans your project for unused classes and files, helping you spot dead code worth removing. Configure paths and exclusions, run the Artisan scanner, and review a clear report of cleanup candidates.

Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: The package is a narrow, dev-only Composer utility for detecting unused direct Composer dependencies. That fits Laravel/PHP projects as a dependency-hygiene and supply-chain reduction tool, not as a runtime dependency. It should sit alongside static analysis and Composer audit rather than replace either.
  • Integration feasibility: Likely feasible via composer require --dev and a CLI command in local/CI workflows. Code intrusion is low because it does not need to ship to production. Feasibility is constrained by the unknown repository, stale last release date of 2022-01-05, and unverified compatibility with current PHP, Composer 2, and Laravel versions.
  • Technical risk: Primary risk is false positives from dynamic class loading, Laravel service providers/facades, package auto-discovery, config/string references, Blade templates, and generated code. Removing a dependency based solely on this tool could break production. The package also appears unmaintained or low-activity, so compatibility and security fixes are uncertain. It should initially be advisory, not a blocking CI gate.
  • Key questions: Which PHP, Composer, and Laravel versions are supported? Does it account for Composer 2, PSR-4 autoloading, Laravel package discovery, and dynamic references? What is the false-positive rate and exclusion mechanism? Does it output machine-readable CI results? Is the repository available for security review and issue tracking? Who owns maintenance if the upstream package is stale?

Integration Approach

  • Stack fit: Good conceptual fit for Laravel/PHP repositories using Composer. It complements composer audit, PHPStan/Psalm, and Laravel Pint-style quality checks by identifying Composer packages that may no longer be required.
  • Migration path: Pilot in one non-critical Laravel repository on a feature branch. Install as a dev dependency, establish a baseline report, document exceptions, and compare findings against manual dependency review before adding it to shared CI templates.
  • Compatibility: Validate against the organization’s supported PHP and Laravel version matrix. Pin the package version, confirm Composer 2 behavior, and test whether Laravel auto-discovery and framework conventions create false positives. If compatibility is poor, keep the package out of standard tooling and evaluate maintained alternatives.
  • Sequencing: 1) inventory Laravel/PHP repositories and Composer dependency risk; 2) run a read-only pilot; 3) classify findings and define exclusion policy; 4) add non-blocking CI reporting; 5) require manual review before removing dependencies; 6) consider a blocking gate only after measured accuracy and ownership are established.

Operational Impact

  • Maintenance: The last release in January 2022 is a material concern. Assign an internal owner, pin the version, monitor compatibility, and be prepared to fork or replace it. Do not depend on upstream responsiveness without a fallback.
  • Support: Developer support should be low for basic CLI use, but exception handling and false-positive triage require PHP/Laravel expertise. TPM should define a review policy so engineers do not auto-remove dependencies from scanner output.
  • Scaling: Works best as a periodic dependency-hygiene check or non-blocking CI job across repositories. Static analysis may add CI minutes but is unlikely to be a major scaling cost. The larger scaling issue is triage volume and inconsistent exception rules across teams.
  • Failure modes: False positives from dynamic usage, false negatives from incomplete static analysis, parser failures on newer PHP syntax, stale compatibility with Composer/Laravel, and misleading confidence if treated as authoritative. A failed scan should degrade to a warning, not block delivery, during initial adoption.
  • Ramp-up: Low for PHP developers familiar with Composer; moderate for TPM-driven rollout because it requires policy, exception ownership, and manual verification. Start as an advisory reporting tool, measure accuracy over several sprints, then decide whether it merits a place in the standard Laravel quality toolkit.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings