| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Compare static analysis and code quality metrics of popular PHP frameworks.
| Tool | Description |
|---|---|
| PHPStan (Level 8) | Static analysis error count |
| Psalm | Static analysis error count |
| phploc | Lines of code, classes, methods, complexity |
| Cognitive Complexity | Method complexity analysis |
| Silenced Issues | Inline suppressions and baseline entries |
# Clone the repo
git clone https://github.com/php-collective/framework-comparison.git
cd framework-comparison
# Install dependencies
composer install
# Run all checks (first run clones frameworks - takes a while)
php run_all.php# Run all analyses
php run_all.php
# Or run individual checks
php check_phpstan/run_all.php
php check_psalm/run_all.php
php check_phploc/run_all.php
php check_cognitive/run_all.php
php check_silenced/run_all.php
# Regenerate report from existing JSON
php generate_report.phpFramework settings are defined in config.php:
'laravel' => [
'repo' => 'laravel/framework',
'branch' => '11.x', // null = default branch
'srcDir' => 'src',
],To switch between dev/stable branches, edit config.php and delete the repos/ directory to re-clone.
See reports/README.md for the latest comparison table.
Note: The results are not interpreted here, only displayed as raw data so far.
This comparison focuses solely on static code analysis metrics. The following are explicitly not covered:
Other ideas:
| Category | Idea |
|---|---|
| More metrics | Test coverage %, dependency count |
| Normalization | Errors per class, errors per method |
| Breakdown | PHPStan/Psalm errors by category (type safety, unused code, etc.) |
| Automation | GitHub Actions to re-run monthly |
| Trend tracking | Store historical data to show improvement over versions |
| Back | FazBrowse Home | New Git URL |