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(11mo ago)10MITPHPPHP ^8.2CI passing

Since Jun 7Pushed 11mo 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 1mo ago

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

30

—

LowBetter than 64% of packages

Maintenance51

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

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

[proengsoft/laravel-jsvalidation

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

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M107](/packages/propaganistas-laravel-phone)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[arondeparon/laravel-request-sanitizer

An easy to use request sanitizer that allows you to sanitize your form data before validating it.

112151.6k1](/packages/arondeparon-laravel-request-sanitizer)[galahad/laravel-addressing

Laravel package providing addressing functionality

70316.6k](/packages/galahad-laravel-addressing)[laravel-lang/attributes

Translation of form element names

273.8M11](/packages/laravel-lang-attributes)

PHPackages © 2026

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