PHPackages                             liaosp/laravel-validate-ext - 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. liaosp/laravel-validate-ext

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

liaosp/laravel-validate-ext
===========================

laravel validate ext 中文验证

v1.0.0(4y ago)67MITPHP

Since Sep 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/liaoshengping/laravel-validate-ext)[ Packagist](https://packagist.org/packages/liaosp/laravel-validate-ext)[ RSS](/packages/liaosp-laravel-validate-ext/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

 Lravel 验证扩展
=============

[](#-lravel-验证扩展-)

[![Latest Stable Version](https://camo.githubusercontent.com/853aec1ff809fce380dbba1247073a743a100835dbc7869286594968489c41fd/68747470733a2f2f706f7365722e707567782e6f72672f6c69616f73702f6c61726176656c2d76616c69646174652d6578742f762f737461626c65)](https://packagist.org/packages/liaosp/laravel-validate-ext)[![Total Downloads](https://camo.githubusercontent.com/76bae07139b60f28fba61607d87f83b976aa9a1cd01dc58a82de5007eed0004e/68747470733a2f2f706f7365722e707567782e6f72672f6c69616f73702f6c61726176656c2d76616c69646174652d6578742f646f776e6c6f616473)](https://packagist.org/packages/liaosp/laravel-validate-ext)[![Daily Downloads](https://camo.githubusercontent.com/f462482056279974a622446a09bbe11ef52e242f7db6df7a70edfe5ac9d7e362/68747470733a2f2f706f7365722e707567782e6f72672f6c69616f73702f6c61726176656c2d76616c69646174652d6578742f642f6461696c79)](https://packagist.org/packages/liaosp/laravel-validate-ext)[![License](https://camo.githubusercontent.com/7885b7795a69f77c788ffad54eb9fe72052020e3b0a97cfbf414a6053388af2b/68747470733a2f2f706f7365722e707567782e6f72672f6c69616f73702f6c61726176656c2d76616c69646174652d6578742f6c6963656e7365)](https://packagist.org/packages/liaosp/laravel-validate-ext)[![StyleCI](https://camo.githubusercontent.com/80453dbca2e64b853d5f4ac532214958140de4b89e17f0acebbaa29337c6443b/68747470733a2f2f7374796c6563692e696f2f7265706f732f35333136333430352f736869656c64)](https://styleci.io/repos/53163405/)

 📦Laravel 验证中文，手机号，身份号

安装
--

[](#安装)

```
$ composer require liaosp/laravel-validate-ext -vvv
```

使用
--

[](#使用)

标识说明chs验证某个字段的值只能是汉字chsAlpha验证某个字段的值只能是汉字、字母chsAlphaNum验证某个字段的值只能是汉字、字母和数字chsDash验证某个字段的值只能是汉字、字母、数字和下划线\_及破折号-mobile验证手机idCard身份证```
$data = ['name' => '小廖one'];

$v = \Illuminate\Support\Facades\Validator::make($data, ['name' => 'chsAlpha']);

$this->assertTrue(!$v->fails());
```

[扩展包编写教程](https://liaosp.blog.csdn.net/article/details/120035631)

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/liaosp/laravel-validate-ext/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/liaosp/laravel-validate-ext/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

1713d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/440eb424aa6385a9bca5bf1597270a4235e943a67536900f7fbf0c8cdb96594e?d=identicon)[liaoshengping](/maintainers/liaoshengping)

---

Top Contributors

[![liaoshengping](https://avatars.githubusercontent.com/u/24541157?v=4)](https://github.com/liaoshengping "liaoshengping (6 commits)")

### Embed Badge

![Health badge](/badges/liaosp-laravel-validate-ext/health.svg)

```
[![Health](https://phpackages.com/badges/liaosp-laravel-validate-ext/health.svg)](https://phpackages.com/packages/liaosp-laravel-validate-ext)
```

###  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.9M105](/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)
