sebastian/lines-of-code
Count lines of code in PHP source with sebastian/lines-of-code. A lightweight library for analyzing PHP files and reporting LOC metrics, useful for tooling, CI checks, and development workflows. Install easily via Composer as a runtime or dev dependency.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| c975l/countlinescode-bundle | 0.85 | — | 2 | 2 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| stefanzweifel/laravel-stats-phploc | 0.85 | Fork of sebastianbergmann/phploc used to keep wnx/laravel-stats compatible across Laravel versions by supporting multiple sebastian/version releases. Measures PHP project size and structure (LOC, complexity, dependencies). Not intended for real projects. | 5 | 5 | 1 | 24K | 0 | 6.8 | 51.7 | BSD-3-Clause | 9 months ago | |
| cmgmyr/phploc | 0.84 | 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. | 26 | 26 | 6 | 273K | 0 | 19.6 | 63.5 | BSD-3-Clause | 1 month ago | |
| danielbaylis/laravel-stats | 0.81 | Laravel package for collecting, storing, and querying application statistics in Laravel. Track events and counters, aggregate metrics over time, and retrieve reports via an easy API to monitor usage and performance in your app. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| mayflower/php-codebrowser | 0.80 | Static PHP code browser that generates a cross-referenced HTML view of your source tree. Jump to classes, methods, and references, inspect files with syntax highlighting, and ship browsable documentation for audits, reviews, or onboarding. | 134 | 135 | 30 | 7K | 5 | 8.3 | 24.9 | BSD-3-Clause | 2 years ago | |
| jakub-onderka/php-var-dump-check | 0.80 | Abandoned CLI tool that scans PHP projects for leftover debug dumps (var_dump, print_r, var_export, plus Tracy/Ladybug/Symfony/Laravel/Doctrine/Zend helpers). Supports excludes, extension filtering, and optional colored output via console highlighter. | 27 | 24 | 14 | 674 | 5 | 2.8 | 21.5 | NOASSERTION | 7 years ago | |
| phpstan/phpstan | 0.80 | PHPStan is a static analysis tool for PHP that finds bugs without running your code. It catches whole classes of errors early, improving type safety and code correctness, and helps you spot issues before writing tests or deploying. | 14,036 | 14,104 | 954 | 9M | 1,060 | 94.2 | 72.3 | MIT | 2 weeks ago | |
| nunomaduro/phpinsights | 0.80 | PHP Insights analyzes PHP code quality, style, architecture, and complexity from your terminal. Works out of the box with Laravel (artisan insights), Symfony, Yii, Magento, and more, with built-in checks for reliability and loose coupling. | 5,615 | 5,621 | 296 | 268K | 69 | 73.1 | 54.4 | MIT | 3 months ago | |
| wnx/laravel-stats | 0.80 | — | 1,746 | 1,751 | 84 | 26K | 0 | 33.8 | 18.7 | MIT | 4 months ago | |
| digitalrevolution/phpunit-file-coverage-inspection | 0.80 | Define per-file code coverage thresholds from Clover coverage.xml, with directory/file overrides and optional uncovered-method rules. Fails builds with checkstyle or GitLab formatted reports so a single file can’t hide behind high overall coverage. | 5 | 5 | 2 | 3K | 1 | 15.7 | 39.8 | MIT | 6 months ago | |
| camelot/coding-style | 0.80 | Camelot coding style standard for PHP projects, based on PSR-2 and Symfony2. Provides ready-to-use configurations for PHP_CodeSniffer and PHP-CS-Fixer (composer install, sample phpcs.xml.dist and .php_cs.dist, customizable rules). | 0 | 0 | 1 | 7 | 0 | 0.1 | 12.5 | MIT | — | |
| handcraftedinthealps/code-coverage-checker | 0.80 | CLI tool to enforce PHPUnit code coverage thresholds. Generate a coverage.php report, then check line/class/method coverage against a minimum percentage, optionally limited to specific directories—ideal for CI to fail builds when coverage drops. | 6 | 6 | 4 | 2K | 0 | 23.7 | 39.8 | MIT | 6 days ago | |
| arty/php-coding-standard | 0.80 | — | 2 | 3 | 0 | 14 | 0 | 11.8 | 12.5 | MIT | 6 months ago | |
| sebastian/complexity | 0.79 | 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. | 1,261 | 1,262 | 10 | 13M | 1 | 18.7 | 60.6 | BSD-3-Clause | 5 months ago | |
| phploc/phploc | 0.79 | phploc is a command-line tool for quickly measuring the size of a PHP project, reporting LOC/NCLOC/CLOC, LLOC, and counts of classes, traits, methods, functions, and cyclomatic complexity. Archived: no longer maintained. | 2,344 | 2,378 | 162 | 89K | 0 | 8.3 | 15.5 | BSD-3-Clause | — | |
| sebastian/environment | 0.75 | sebastian/environment helps PHP libraries handle runtime-specific execution paths by detecting and describing the current environment (PHP version, features, etc.). Useful for writing portable code that adapts to different runtimes and configurations. | 6,778 | 6,789 | 37 | 15M | 1 | 49.9 | 53.3 | BSD-3-Clause | 1 month ago |
How can I help you explore Laravel packages today?