phpinsights
5,648
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
PHP
语言
—
创建时间
最近更新
项目能做什么
可在终端中直接运行的 PHP 代码质量即时检测工具。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center">
<img src="/art/logo.gif" width="350" alt="PHP Insights">
<img src="/art/preview.png" width="882" alt="PHP Insights Preview">
<p align="center">
<a href="https://github.com/nunomaduro/phpinsights/actions/workflows/test.yaml"><img src="https://github.com/nunomaduro/phpinsights/actions/workflows/test.yaml/badge.svg" alt="Unit Tests"></a>
<a href="https://packagist.org/packages/nunomaduro/phpinsights"><img src="https://poser.pugx.org/nunomaduro/phpinsights/d/total.svg" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/nunomaduro/phpinsights"><img src="https://poser.pugx.org/nunomaduro/phpinsights/v/stable.svg" alt="Latest Version"></a>
<a href="https://packagist.org/packages/nunomaduro/phpinsights"><img src="https://poser.pugx.org/nunomaduro/phpinsights/license.svg" alt="License"></a>
</p>
<p align="center">
<strong>For full documentation, visit <a href="https://nunomaduro.github.io/phpinsights/">nunomaduro.github.io/phpinsights/</a></strong>.
</p>
</p>
**PHP Insights** was carefully crafted to simplify the analysis of your code directly from your terminal, and is the perfect starting point to analyze the code quality of your PHP projects.
- Follow the creator Nuno Maduro:
- YouTube: **[youtube.com/@nunomaduro](https://youtube.com/@nunomaduro)** — Videos every week
- Twitch: **[twitch.tv/nunomaduro](https://twitch.tv/nunomaduro)** — Live coding on Mondays, Wednesdays, and Fridays at 9PM UTC
- Twitter / X: **[x.com/enunomaduro](https://x.com/enunomaduro)**
- LinkedIn: **[linkedin.com/in/nunomaduro](https://www.linkedin.com/in/nunomaduro)**
- Instagram: **[instagram.com/enunomaduro](https://www.instagram.com/enunomaduro)**
- Tiktok: **[tiktok.com/@enunomaduro](https://www.tiktok.com/@enunomaduro)**
## 🚀 Quick start
### First, install:
```
composer require nunomaduro/phpinsights --dev
```
### Then, use it:
```
./vendor/bin/phpinsights
```
### For Laravel:
First, publish the configuration file:
```
php artisan vendor:publish --provider="NunoMaduro\PhpInsights\Application\Adapters\Laravel\InsightsServiceProvider"
```
Then, use it:
```
php artisan insights
```
## ✨ Features
- Analysis of **code quality** and **coding style**
- Beautiful overview of code **architecture** and its **complexity**
- Designed to work out-of-the-box with **Laravel**, **Symfony**, **Yii**, **Magento**, and more
- Contains built-in checks for making code reliable, loosely coupled, **simple**, and **clean**
## 💖 Support the development
**Do you like this project? Support it by donating**
Click the "💖 Sponsor" at the top of this repo.
PHP Insights is open-sourced software licensed under the [MIT license](LICENSE.md).
阅读完整原文
项目深度分析 AI 生成
PHP 团队代码质量门禁与趋势监测 SaaS (GitHub/GitLab App)
| 产品构想 | 基于 PHP Insights 构建针对 Laravel/PHP 团队的轻量化代码质量审查机器人与历史监控大盘,替代笨重的企业级 SonarQube |
| 核心功能 | Pull Request 自动评分与行内建议、质量阈值合并门禁、分支间复杂度/质量趋势看板、Slack/Discord 告警 |
| 目标用户 | 使用 PHP/Laravel 的中小型研发团队负责人、CTO |
| 难度/周期 | 中等 · 2 - 3 个月 · 成本:月均服务器与云函数运行成本(约 $50 - $150) |
| 收费模式 | 按月/按席位订阅制(SaaS Tier: 个人免费,小团队付费) |
| 竞争风险 | 面对 SonarQube、Code Climate 等成熟通用工具的竞争;中小型团队可能仅使用免费 CLI 配合 GitHub Actions 自行实现简单检查 |
| 依据 | 已验证事实 |
PHP 遗留系统架构审计与重构评估报告工具 (商业 CLI 增强包/桌面端)
| 产品构想 | 针对 PHP 存量系统,提供一键生成专业级技术债务估算、架构违规分析及重构成本预估的 PDF/交互式报告生成器 |
| 核心功能 | 详细技术债务工时折算、架构耦合图谱导出、企业级白标(White-label)PDF 报告导出、历史演化风险预警 |
| 目标用户 | 独立技术顾问、承接老旧 PHP 项目改造的外包团队、企业架构师 |
| 难度/周期 | 较低 · 1 个月 · 成本:几乎无持续运行成本(纯本地运行/离线生成) |
| 收费模式 | 买断制 License 授权或按生成的报告份数收费 |
| 竞争风险 | 目标受众较窄,频次偏向低频咨询交付场景,需要较高的市场推广努力(推测) |
| 依据 | 尚需验证的假设 |
PhpStorm / VS Code 实时质量反馈商业插件
| 产品构想 | 将 PHP Insights 的终端分析能力搬入 IDE 侧边栏,提供实时的架构复杂度热力图、依赖耦合度提示及一键代码自动修复 |
| 核心功能 | 文件/函数级复杂度实时浮动面板、架构坏味道即时提示、批量自动修复代码风格与违规结构 |
| 目标用户 | 日常以 PHP/Laravel 为主的专业开发者 |
| 难度/周期 | 中等 · 1.5 - 2.5 个月 · 成本:开发机器与应用商店开发者账号年费(约 $100) |
| 收费模式 | IDE 插件市场按月/按年订阅或单次买断 |
| 竞争风险 | 官方免费插件生态或现有 PHPStan/PHP-CS-Fixer 扩展可能分流需求;IDE 插件维护受平台版本迭代影响大 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建时间待补全,最近推送 ,发布过 25 个 Release |
| 社区活跃 | Star 5,648 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。