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

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

nivseb/strict-request
=====================

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

v1.0.0(1y ago)10MITPHPPHP ^8.2CI passing

Since Jun 7Pushed 1y agoCompare

[ Source](https://github.com/nivseb/strict-request)[ Packagist](https://packagist.org/packages/nivseb/strict-request)[ RSS](/packages/nivseb-strict-request/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (12)Versions (4)Used By (0)

Strict Form Request
===================

[](#strict-form-request)

[![Tests](https://camo.githubusercontent.com/c7838dbb37274b4f0a6cb2d45d9bdda3e0a92730e9548ff0492532694f258a05/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e69767365622f7374726963742d726571756573742f746573742e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/nivseb/strict-request/actions/workflows/tests.yml)[![Supported PHP Version](https://camo.githubusercontent.com/b06112a8b711c088c8a76c9cdf69c330729e1f8c9217d31eee0a014fadbdce67/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6e69767365622f7374726963742d726571756573743f636f6c6f723d383839326266)](https://www.php.net/supported-versions)[![Latest Stable Version](https://camo.githubusercontent.com/a0f5f08c506389660ab638b74997b3449541d80ad9b3dfd2506205cb2701f4cf/68747470733a2f2f706f7365722e707567782e6f72672f6e69767365622f7374726963742d726571756573742f762f737461626c652e737667)](https://packagist.org/packages/nivseb/strict-request)[![Total Downloads](https://camo.githubusercontent.com/ffc2c4fa47f09359ebd75dbdc4b46844109cfc3c47ca8a7ac5992693a7398f39/68747470733a2f2f706f7365722e707567782e6f72672f6e69767365622f7374726963742d726571756573742f646f776e6c6f6164732e737667)](https://packagist.org/packages/nivseb/strict-request)

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
-------

[](#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
------------

[](#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

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance47

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ab68ab2a78069db3160d3194e98b244061024f5cd65389a28e28ecfd430b4c7?d=identicon)[nivseb](/maintainers/nivseb)

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")[![nivseb](https://avatars.githubusercontent.com/u/1013829?v=4)](https://github.com/nivseb "nivseb (1 commits)")

---

Tags

requestlaravelvalidationform

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nivseb-strict-request/health.svg)

```
[![Health](https://phpackages.com/badges/nivseb-strict-request/health.svg)](https://phpackages.com/packages/nivseb-strict-request)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.4M50](/packages/proengsoft-laravel-jsvalidation)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.9k3](/packages/defstudio-telegraph)[sandermuller/laravel-fluent-validation

Fluent validation rule builders for Laravel

20719.0k4](/packages/sandermuller-laravel-fluent-validation)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)

PHPackages © 2026

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