sebastianbergmann/phploc
A tool for quickly measuring the size of a PHP project. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 16
- Release rhythm 35
- Longevity 100
Flags: no_releases archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 6432
- days_rel: n/a
- days_push: 508
- n_releases_24m: 0
Adoption not part of the score
2343 stars · 164 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
PHPLOC is a command-line tool that quickly measures the size of a PHP project, reporting lines of code, comment ratios, and cyclomatic complexity. It is distributed as a PHAR archive, but the project is no longer maintained and its repository is archived.
Use cases
- measure lines of code in a php project
- count comment vs non-comment lines in a codebase
- get cyclomatic complexity statistics for php classes and functions
- estimate the size of a legacy php codebase
- generate quick codebase metrics for a report
When to choose
- you need a fast, zero-config LOC and complexity snapshot of a PHP project
- you are okay using an unmaintained but stable tool
When to avoid
- you need actively maintained tooling or support for the latest PHP syntax
- you need in-depth static analysis beyond size metrics
- you want CI-integrated quality gates with ongoing updates
Facets
cli-tool · maturity abandoned
developer-tools cli analytics developer-tools php cli cross-platform code-metrics lines-of-code php archived cyclomatic-complexity command-line static-analysis
1 source
- readme: https://github.com/sebastianbergmann/phploc · fetched 2026-08-28 · 4c8c2b6713d3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sebastianbergmann/phploc | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="sebastianbergmann/phploc")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem