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

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.
unabomber/timezone
delatbabel/contacts
astritzeqiri/g-recaptcha
kevinongko/laravel-genode
developeruz/laravel-analytics
robbiep/afterthedeadline
frankkessler/incontact-laravel-oauth2-rest
jlxh/laravel-userlog
davidmgilo/timetables
qylinfly/role-permission
reflect-digital/conduit
takashato/laravel-vietqr
aitor24/laralang
kraenzle-ritter/entity-relations
dindigital/din-image
pomirleanu/image-colors
sawmainek/laravel-api-generator
delatbabel/jsonresponses
mouhamedfd/permissions-generator
eduplus/qr