PHPackages                             dawn-frost/dawn-inspect - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. dawn-frost/dawn-inspect

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

dawn-frost/dawn-inspect
=======================

常用PHP-API验证函数

v1.0.6(4y ago)031MITPHPPHP ^7.0

Since Dec 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dawn-frost/inspect-functions)[ Packagist](https://packagist.org/packages/dawn-frost/dawn-inspect)[ RSS](/packages/dawn-frost-dawn-inspect/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)DependenciesVersions (7)Used By (0)

PHP 纯 API 后端中用于验证的一些常规函数
------------------------

[](#php-纯-api-后端中用于验证的一些常规函数)

- 环境要求：php 7.0 版本及以上
- composer 安装

```
  composer require dawn-frost/dawn-inspect
```

src 文件夹下面文件功能说明
---------------

[](#src-文件夹下面文件功能说明)

- Validator 类
    - 业务使用函数，比如验证手机号、整型数字等
- Checker 类
    - 系统使用函数，比如 xss 字符串验证

使用示例
----

[](#使用示例)

### 用户授权

[](#用户授权)

```
require_once './vendor/autoload.php'; // 一般框架自动引入

use DawnFrost\Inspect\Validator;

$result = Validator::isMobile('xxxxxxxx');

var_dump($result);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~64 days

Recently: every ~81 days

Total

6

Last Release

1639d ago

PHP version history (2 changes)v1.0.1PHP ^4.6|^5.0|^7.0

v1.0.4PHP ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/253763215?v=4)[hxy1104](/maintainers/hxy1104)[@hxy1104](https://github.com/hxy1104)

---

Top Contributors

[![huxiaoyan1104](https://avatars.githubusercontent.com/u/226224673?v=4)](https://github.com/huxiaoyan1104 "huxiaoyan1104 (3 commits)")

### Embed Badge

![Health badge](/badges/dawn-frost-dawn-inspect/health.svg)

```
[![Health](https://phpackages.com/badges/dawn-frost-dawn-inspect/health.svg)](https://phpackages.com/packages/dawn-frost-dawn-inspect)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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