PHPackages                             chrgriffin/laravel-strict-validator - 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. chrgriffin/laravel-strict-validator

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

chrgriffin/laravel-strict-validator
===================================

'Strict' validator for PHP arrays. Currently only supported in Laravel.

v1.0.2(8y ago)2153MITPHPPHP &gt;=7.0

Since May 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ChrGriffin/laravel-strict-validator)[ Packagist](https://packagist.org/packages/chrgriffin/laravel-strict-validator)[ RSS](/packages/chrgriffin-laravel-strict-validator/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (4)Used By (0)

'Strict' validator for PHP arrays. Currently only supported in Lumen/Laravel as it uses the Laravel validation implementation. Use this package to add 'strict' validation in addition to the normal Laravel validation rules.

'Strict' Rules
--------------

[](#strict-rules)

1. Arrays can only contain fields under validation. Any 'extra' indexes will cause the validator to return `false. `
2. *to be continued..?*

Installation
------------

[](#installation)

```
composer require chrgriffin/laravel-strict-validator

```

Usage
-----

[](#usage)

```
use ChrGriffin\StrictValidator;

$validator = new StrictValidator(
    $dataToValidate,
    [
        'foo'       => 'string|required',
        'bar'       => 'array|required',
        'bar.inner' => 'string|required'
    ]
);

$valid = $validator->validate();

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~0 days

Total

3

Last Release

2920d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90b61f51551a66c90c131f873fb94ee87a064cb72dc178d8512e90e13dc769e6?d=identicon)[ChrGriffin](/maintainers/ChrGriffin)

---

Top Contributors

[![ChrGriffin](https://avatars.githubusercontent.com/u/10466686?v=4)](https://github.com/ChrGriffin "ChrGriffin (1 commits)")

### Embed Badge

![Health badge](/badges/chrgriffin-laravel-strict-validator/health.svg)

```
[![Health](https://phpackages.com/badges/chrgriffin-laravel-strict-validator/health.svg)](https://phpackages.com/packages/chrgriffin-laravel-strict-validator)
```

###  Alternatives

[propaganistas/laravel-phone

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

3.0k35.7M107](/packages/propaganistas-laravel-phone)[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[proengsoft/laravel-jsvalidation

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

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

759569.4k13](/packages/wendelladriel-laravel-validated-dto)

PHPackages © 2026

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