{"id":43146786,"url":"https://github.com/php-collective/framework-comparison","last_synced_at":"2026-01-31T23:48:27.738Z","repository":{"id":227903788,"uuid":"772680868","full_name":"php-collective/framework-comparison","owner":"php-collective","description":"Compare some metrics of popular PHP frameworks","archived":false,"fork":false,"pushed_at":"2025-11-30T16:22:14.000Z","size":5214,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-02T22:39:20.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-collective.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-15T17:12:39.000Z","updated_at":"2025-12-02T01:43:23.000Z","dependencies_parsed_at":"2024-03-15T18:47:49.358Z","dependency_job_id":null,"html_url":"https://github.com/php-collective/framework-comparison","commit_stats":null,"previous_names":["php-collective/framework-comparison"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/php-collective/framework-comparison","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-collective%2Fframework-comparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-collective%2Fframework-comparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-collective%2Fframework-comparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-collective%2Fframework-comparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-collective","download_url":"https://codeload.github.com/php-collective/framework-comparison/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-collective%2Fframework-comparison/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28961124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T23:03:11.038Z","status":"ssl_error","status_checked_at":"2026-01-31T22:56:44.691Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-31T23:48:27.138Z","updated_at":"2026-01-31T23:48:27.732Z","avatar_url":"https://github.com/php-collective.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Framework Comparison\n\nCompare static analysis and code quality metrics of popular PHP frameworks.\n\n## Frameworks Analyzed\n\n- [cakephp/cakephp](https://github.com/cakephp/cakephp)\n- [codeigniter4/CodeIgniter4](https://github.com/codeigniter4/CodeIgniter4)\n- [laminas/laminas-mvc](https://github.com/laminas/laminas-mvc)\n- [laravel/framework](https://github.com/laravel/framework)\n- [symfony/symfony](https://github.com/symfony/symfony)\n- [yiisoft/yii2](https://github.com/yiisoft/yii2)\n\n## Metrics Collected\n\n| Tool | Description |\n|------|-------------|\n| PHPStan (Level 8) | Static analysis error count |\n| Psalm | Static analysis error count |\n| phploc | Lines of code, classes, methods, complexity |\n| Cognitive Complexity | Method complexity analysis |\n| Silenced Issues | Inline suppressions and baseline entries |\n\n## Requirements\n\n- PHP 8.1+\n- Composer\n- Git\n\n## Getting Started\n\n```bash\n# Clone the repo\ngit clone https://github.com/php-collective/framework-comparison.git\ncd framework-comparison\n\n# Install dependencies\ncomposer install\n\n# Run all checks (first run clones frameworks - takes a while)\nphp run_all.php\n```\n\n## Usage\n\n```bash\n# Run all analyses\nphp run_all.php\n\n# Or run individual checks\nphp check_phpstan/run_all.php\nphp check_psalm/run_all.php\nphp check_phploc/run_all.php\nphp check_cognitive/run_all.php\nphp check_silenced/run_all.php\n\n# Regenerate report from existing JSON\nphp generate_report.php\n```\n\n## Configuration\n\nFramework settings are defined in `config.php`:\n\n```php\n'laravel' =\u003e [\n    'repo' =\u003e 'laravel/framework',\n    'branch' =\u003e '11.x',  // null = default branch\n    'srcDir' =\u003e 'src',\n],\n```\n\n- **branch**: Set to analyze a specific branch (e.g., `11.x` for stable vs `master` for dev)\n- **srcDir**: Directory containing source code to analyze\n- Laminas packages each have their own branch setting\n\nTo switch between dev/stable branches, edit `config.php` and delete the `repos/` directory to re-clone.\n\n## Results\n\nSee **[reports/README.md](reports/README.md)** for the latest comparison table.\n\nNote: The results are not interpreted here, only displayed as raw data so far.\n\n## Out of Scope\n\nThis comparison focuses solely on static code analysis metrics. The following are explicitly **not** covered:\n\n- **Performance benchmarks** - Runtime speed, memory usage, request throughput\n- **Feature comparisons** - ORM capabilities, routing, templating, etc.\n- **Security audits** - Vulnerability assessments, CVE history\n- **Documentation quality** - Completeness, clarity, examples\n- **Community \u0026 ecosystem** - Package availability, job market, support\n- **Learning curve** - Ease of onboarding, developer experience\n- **Test coverage** - Unit/integration test percentages\n- **API stability** - Breaking changes between versions\n\n## TODOs\n\n- visible results as table or graph\n\nOther ideas:\n\n| Category       | Idea                                                              |\n|----------------|-------------------------------------------------------------------|\n| More metrics   | Test coverage %, dependency count                                 |\n| Normalization  | Errors per class, errors per method                               |\n| Breakdown      | PHPStan/Psalm errors by category (type safety, unused code, etc.) |\n| Automation     | GitHub Actions to re-run monthly                                  |\n| Trend tracking | Store historical data to show improvement over versions           |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-collective%2Fframework-comparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-collective%2Fframework-comparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-collective%2Fframework-comparison/lists"}