PHPackages                             jmf/type-validation - 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. jmf/type-validation

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

jmf/type-validation
===================

Allows to check if a variable is of the expected type, using a type specification string like the ones in PHPDoc blocks (int, \\Foo\\Bar\[\], null|string, etc).

4.0.0(3y ago)010MITPHP &gt;=8.2

Since Apr 4Compare

[ Source](https://github.com/jmfeurprier/type-validation)[ Packagist](https://packagist.org/packages/jmf/type-validation)[ RSS](/packages/jmf-type-validation/feed)WikiDiscussions Synced today

READMEChangelogDependencies (7)Versions (13)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/jmfeurprier/type-validation).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

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 ~251 days

Recently: every ~263 days

Total

13

Last Release

1097d ago

Major Versions

1.0.x-dev → 2.0.02015-05-12

2.0.x-dev → 3.0.02020-07-03

3.1.x-dev → 4.0.02023-07-01

PHP version history (3 changes)1.0.0PHP &gt;=5.3.3

3.0.0PHP &gt;=7.4

4.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b08b8105ec8bc88d1c911e10dbf156814769650a67960e2f3d71ed6d2417f0d?d=identicon)[jmfeurprier](/maintainers/jmfeurprier)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jmf-type-validation/health.svg)

```
[![Health](https://phpackages.com/badges/jmf-type-validation/health.svg)](https://phpackages.com/packages/jmf-type-validation)
```

PHPackages © 2026

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