承接 nivseb/strict-request 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nivseb/strict-request

最新稳定版本:v1.0.0

Composer 安装命令:

composer require nivseb/strict-request

包简介

Strict form request allows you to build with more restrictive strict validation.

README 文档

README

Tests Supported PHP Version Latest Stable Version Total Downloads

This package provide a extended request class, based on the laravel FormRequest. This extended request class allow you to write more restricted validation rules. By default, the original form request combine all input sources to validate all data based one rule set. If you want to define on wich way the client should send the data to your application, this package is the solution. The StrictFormRequest define rules for the different input sources and validate only the data from that input source with that validation rule set.

Example

In some cases it's important for your application that some data are only include as body and not as query parameter. In that case you can define in your request the bodyRules method. That will ensure, in combination with your rules, that the data are present in the body and not in the query parameter.

Installation

  1. To install PHP Mock Server Connector you can easily use composer.
    composer require nivseb/strict-request
  2. Build your request by extending from \Nivseb\StrictRequest\Http\StrictFormRequest
  3. Write your validation by adding rules for header, body and/or query

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-07