PHPackages                             miaow-growling/code-detection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. miaow-growling/code-detection

Active1[Utility &amp; Helpers](/categories/utility)

miaow-growling/code-detection
=============================

PHP-code-detection

v1.0.0(6y ago)17MITShell

Since Nov 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/miaow-growling/code-detection)[ Packagist](https://packagist.org/packages/miaow-growling/code-detection)[ RSS](/packages/miaow-growling-code-detection/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

PHP代码检测工具
---------

[](#php代码检测工具)

### 功能模块

[](#功能模块)

- 代码语法检测
- 代码规范检测（PSR2）

### 实现原理

[](#实现原理)

> 使用git-commit钩子实现

### 安装方法

[](#安装方法)

> 方法1

```
composer require miaow-growling/code-detection --prefer-dist

```

> 方法2

- 修改composer.jsonw文件

```
"require-dev": {
    ....
    "miaow-growling/code-detection":"dev-master",
    ....
 },

```

- 执行命令

```
composer install --prefer-dist

```

### 安装git钩子（自动安装待验证）

[](#安装git钩子自动安装待验证)

> 将hooks目录中的文件复制到项目的.git/hooks中

### PSR2常见问题处理方式见PHPCS.md

[](#psr2常见问题处理方式见phpcsmd)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2373d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13690842?v=4)[员帅](/maintainers/he19920226he)[@he19920226he](https://github.com/he19920226he)

### Embed Badge

![Health badge](/badges/miaow-growling-code-detection/health.svg)

```
[![Health](https://phpackages.com/badges/miaow-growling-code-detection/health.svg)](https://phpackages.com/packages/miaow-growling-code-detection)
```

###  Alternatives

[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k13](/packages/shopsys-coding-standards)[flyeralarm/php-code-validator

A custom coding standard for FLYERALARM

2226.9k6](/packages/flyeralarm-php-code-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
