Weave Code
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

Complexity Laravel Package

sebastian/complexity

Compute code complexity metrics for PHP units (functions, methods, classes). sebastian/complexity provides programmatic analysis useful for static analysis tools, quality gates, and CI reporting; install via Composer for project or dev-only use.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Automating code quality gates in CI/CD pipelines to block high-complexity code merges before they reach production
  • Prioritizing technical debt reduction by objectively identifying modules with excessive cyclomatic complexity
  • Informing roadmap decisions around refactoring efforts using data-driven complexity metrics
  • Choosing a trusted, specialized tool over building in-house complexity analysis (reducing maintenance overhead)
  • Validating code health trends across sprints to measure the impact of quality-focused initiatives

When to Consider This Package

  • When your project uses PHP 8.4+ and requires precise, dedicated complexity metrics for PHP code units
  • When integrating with existing PHP static analysis workflows (e.g., as a component of a broader quality pipeline)
  • Avoid when: using PHP <8.4, needing multi-language support, or when a comprehensive tool like PHPStan already includes complexity checks (redundant dependency)
  • Avoid for greenfield projects where simpler static analysis tools suffice or when the team lacks capacity to interpret/act on complexity metrics

How to Pitch It (Stakeholders)

Executives: "This tool quantifies code complexity to proactively reduce technical debt, cutting long-term maintenance costs and bug rates by 20–30% based on industry benchmarks. Backed by Sebastian Bergmann (PHPUnit creator), it ensures reliable, actionable insights that accelerate feature delivery while protecting system stability—without operational overhead."

Engineering: "Zero-configuration

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation