登录 注册
其他
5,648
Stars
0
Forks
0
Watchers
0
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 真实检索

项目中文简介Stars语言
grafana/grafana 中文介绍暂未生成
The open and composable observability and data visualization
77,836 TypeScript
apache/superset 中文介绍暂未生成
Apache Superset is a Data Visualization and Data Exploration
75,479 Python
pathwaycom/pathway 中文介绍暂未生成
Python ETL framework for stream processing, real-time analyt
61,998 Python
coreyhaines31/marketingskills 中文介绍暂未生成
Marketing skills for Claude Code and AI agents. CRO, copywri
59,724 JavaScript
ClickHouse/ClickHouse 中文介绍暂未生成
ClickHouse® is a real-time analytics database management sys
50,883 C++
metabase/metabase 中文介绍暂未生成
The easy-to-use open source Business Intelligence and Embedd
50,283 Clojure
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 ,最近推送 ,发布过 25 个 Release
社区活跃Star 5,648 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/nunomaduro/phpinsights.git
cd phpinsights
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。