PHPackages                             hollisho/webman-request - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. hollisho/webman-request

ActiveLibrary[HTTP &amp; Networking](/categories/http)

hollisho/webman-request
=======================

http Request For Webman

v1.0.4(1y ago)3112MITPHPPHP &gt;=7.2

Since Oct 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hollisho/webman-request)[ Packagist](https://packagist.org/packages/hollisho/webman-request)[ Docs](https://github.com/hollisho/webman-request)[ RSS](/packages/hollisho-webman-request/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Webman框架请求验证器扩展包
================

[](#webman框架请求验证器扩展包)

> 本扩展包为Webman框架提供了一个优雅的请求验证解决方案，内置了ThinkPHP验证器，通过依赖注入方式自动生成请求对象，并对对象的字段进行校验。

安装
--

[](#安装)

通过Composer安装：

```
composer require hollisho/webman-request
```

基本使用
----

[](#基本使用)

### 定义请求类

[](#定义请求类)

首先，创建一个继承自`WebmanRequest`的请求类：

```
