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

Phploc Laravel Package

cmgmyr/phploc

Laravel-friendly wrapper around phpLOC for measuring PHP project size and structure. Generate lines-of-code, classes, methods, complexity-style stats from the command line or within builds to quickly gauge codebase scope and trends.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Informs feature prioritization by quantifying technical debt hotspots (e.g., high LOC in specific modules)
  • Tracks codebase health trends over time to validate refactoring ROI
  • Supports build vs. buy decisions by providing baseline metrics for internal tooling vs. third-party solutions
  • Enables data-driven CI gates (e.g., blocking PRs if LOC exceeds thresholds)
  • Critical for onboarding new engineers by providing objective insights into application structure

When to Consider This Package

  • ✅ Use when: Working exclusively in Laravel projects needing lightweight, quick metrics
  • ✅ Use when: CI/CD integration for basic size/complexity checks without heavy tooling
  • ✅ Use when: Needing a zero-config solution for tracking LOC trends across releases
  • ❌ Avoid when: Requiring advanced static analysis (e.g., security, code smells)
  • ❌ Avoid when: Non-Laravel codebases (e.g., Symfony, vanilla PHP)
  • ❌ Avoid when: Existing enterprise-grade tools (e.g., SonarQube) already cover these needs

How to Pitch It (Stakeholders)

Executives: "This tool gives us objective, actionable insights into our codebase health without disrupting workflows. By tracking metrics like lines of code and complexity trends, we proactively reduce technical debt—saving engineering time and accelerating feature delivery. It’s a free, low-effort integration that directly impacts our ability to maintain high-quality software at scale."

Engineering: "It’s a single Artisan command that delivers immediate visibility into your project’s structure—no setup required. Get consistent metrics across environments, integrate seamlessly into CI to catch issues early, and use the data to make informed refactoring decisions. Perfect for teams needing simplicity without sacrificing actionable data."

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
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
uri-template/tests