mayflower/php-codebrowser
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.
Adopt if:
Look elsewhere if:
*"This is a force multiplier for our engineering team. Right now, developers waste hours jumping between IDEs, static analysis tools, and documentation to understand code. PHP_CodeBrowser solves this by embedding real-time QA insights (e.g., bugs, complexity, test coverage) directly into a searchable, interactive code map—like Google Maps for our PHP codebase.
Key wins:
- Faster onboarding: New hires get context-rich navigation with risks/opportunities flagged upfront.
- Reduced technical debt: Visualize hotspots for refactoring, prioritized by business impact.
- Cost-effective: Avoids custom tooling (6–12 months of dev effort) for a low-maintenance, open-source solution.
- Compliance-ready: Simplifies audits by surfacing security/vulnerability data in one place.
Ask: Approve a 2-week pilot with our largest PHP service to measure time saved on code reviews and onboarding. Budget: ~$0 (open-source) + minor DevOps setup."*
*"PHP_CodeBrowser is like PhpStorm + SonarQube + a codebase atlas—all in one web UI. Here’s why it’s a game-changer:
- No more tab-switching: See PHPStan errors, Pest coverage, or SonarQube issues inline with the code, with clickable navigation.
- Extensible: Plug in any QA tool via its JSON/XML output (e.g., custom scripts for legacy systems).
- Lightweight: Runs as a PHP package (no heavy backend needed) and integrates with GitHub/GitLab for repo-aware browsing.
- Dev-friendly: Open-source (BSD-3), Dockerized, and minimal config—just drop it into your stack.
Proposal:
- Phase 1: Deploy for Laravel monorepo (e.g.,
api/+web/services) and test with SonarQube + Pest.- Phase 2: Add custom annotations (e.g., Jira ticket links, architecture diagrams) via metadata files.
- Phase 3: Replace internal wiki links with browser bookmarks for critical paths.
Trade-offs:
- No real-time updates: Relies on pre-computed QA data (refresh via CI/CD).
- Basic UI: Not a replacement for PhpStorm, but complements it for large-scale navigation.
Let’s prototype this for our
paymentsservice—it’s the most complex and would benefit the most."*
How can I help you explore Laravel packages today?