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

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

qtlenh/laravel-strict-validator
===============================

Add type constraints and coerce input types during validation

1.0.0(2y ago)34.6k↓32%PHP

Since Mar 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/qtlenh/laravel-strict-validator)[ Packagist](https://packagist.org/packages/qtlenh/laravel-strict-validator)[ RSS](/packages/qtlenh-laravel-strict-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Strict Validator
========================

[](#laravel-strict-validator)

Add new parameters `strict` and `cast` to the existing Laravel rules: `integer`, `numeric`, `decimal`, `boolean`.

To install Laravel Type Validator, simply require it via Composer:

`composer require qtlenh/laravel-strict-validator`

Use `strict` to strictly check the input data type (suitable for designing APIs that receive JSON payloads).

Occasionally, frontend developers may not send data type as you expect. Use the `cast` parameter to coerce the input data to the correct data type being validated.

```
$request->validate([
  'width' => 'integer:strict', // return error if `width` is string type
  'height' => 'integer:cast', // cast `height` to integer type if it is valid
]);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

791d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/466593015e76eaf42ba99827a950ffb28dc48d82d338d3aad8848696cf25bd5b?d=identicon)[kt200707g11](/maintainers/kt200707g11)

---

Top Contributors

[![qtlenh](https://avatars.githubusercontent.com/u/653715?v=4)](https://github.com/qtlenh "qtlenh (3 commits)")

---

Tags

laravelvalidatorstrictcastqtlenh

### Embed Badge

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

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

###  Alternatives

[illuminatech/validation-composite

Allows uniting several validation rules into a single one for easy re-usage

184485.5k](/packages/illuminatech-validation-composite)[laravel-validation-rules/phone

Validate that a phone number is in the correct format

69355.5k](/packages/laravel-validation-rules-phone)[stuyam/laravel-phone-validator

A phone validator for Laravel using the free Twilio phone lookup service.

2861.3k](/packages/stuyam-laravel-phone-validator)[laravel-validation-rules/us-state

Validate US States and Canada Provinces

16172.7k](/packages/laravel-validation-rules-us-state)[laravel-validation-rules/timezone

Validate that a given timezone is valid.

2119.0k](/packages/laravel-validation-rules-timezone)

PHPackages © 2026

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