PHPackages                             vircom/types-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. vircom/types-validator

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

vircom/types-validator
======================

Scalar and object types validator simple library

2.0.1(6y ago)03MITPHPPHP ^7.4CI failing

Since May 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/vircom/types-validator)[ Packagist](https://packagist.org/packages/vircom/types-validator)[ Docs](http://vircom.pl)[ RSS](/packages/vircom-types-validator/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (5)Versions (5)Used By (0)

vircom/types-validator
======================

[](#vircomtypes-validator)

---

[![Build Status](https://camo.githubusercontent.com/d4e2807f5519fd22f5f7cf008575c6e5ea9467ea43d14afaf2dfec40768077c8/68747470733a2f2f7472617669732d63692e6f72672f766972636f6d2f74797065732d76616c696461746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vircom/types-validator)[![Coverage Status](https://camo.githubusercontent.com/8b33545ace436e7603ca07a5dcfbd380ab0b5b75af1a7ac90ef41dc8b5979bce/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f766972636f6d2f74797065732d76616c696461746f722f62616467652e737667)](https://coveralls.io/github/vircom/types-validator)[![Latest Stable Version](https://camo.githubusercontent.com/9fcdb5bf4d720a7d1a9aa3cd2f62f51bf233c3c150e3aee843b6c129afebde5c/68747470733a2f2f706f7365722e707567782e6f72672f766972636f6d2f74797065732d76616c696461746f722f762f737461626c652e706e67)](https://packagist.org/packages/vircom/types-validator)[![Total Downloads](https://camo.githubusercontent.com/c75b9507cea848daed11700e919d08c456289710c45d21d30ca6daffb83007d3/68747470733a2f2f706f7365722e707567782e6f72672f766972636f6d2f74797065732d76616c696461746f722f646f776e6c6f6164732e706e67)](https://packagist.org/vircom/types-validator)[![License](https://camo.githubusercontent.com/b1dc574aee5f26e2b485a9eb56d0e4d07e151fd3017b8c00e9a1660876cb23d5/68747470733a2f2f706f7365722e707567782e6f72672f766972636f6d2f74797065732d76616c696461746f722f6c6963656e73652e706e67)](https://packagist.org/packages/vircom/types-validator)

This package provides an implementation to validate method argument types.

Prerequisites
=============

[](#prerequisites)

- PHP 7.4+

Installation
============

[](#installation)

Install by composer
-------------------

[](#install-by-composer)

To install vircom/types-validator with Composer, run the following command:

```
$ composer require vircom/types-validator
```

You can see this library on [Packagist](https://packagist.org/packages/vircom/types-validator).

Composer installs autoloader at `./vendor/autoloader.php`. If you use vircom/http-parser in your php script, add:

```
require_once 'vendor/autoload.php';
```

Documentation:
==============

[](#documentation)

Documentation is available in [GitBook](https://vircom.gitbook.io/vircom-types-validator/v/2.0.1)

About
=====

[](#about)

Submitting bugs and feature requests
------------------------------------

[](#submitting-bugs-and-feature-requests)

Bugs and feature request are tracked on [GitHub](https://github.com/vircom/types-validator/issues)

License
-------

[](#license)

Monolog is licensed under the MIT License - see the `LICENSE` file for details

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~22 days

Total

3

Last Release

2204d ago

Major Versions

1.0.0 → 2.0.02020-05-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13232500?v=4)[VirCom](/maintainers/VirCom)[@vircom](https://github.com/vircom)

---

Top Contributors

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

---

Tags

validatorobjectscalar

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vircom-types-validator/health.svg)

```
[![Health](https://phpackages.com/badges/vircom-types-validator/health.svg)](https://phpackages.com/packages/vircom-types-validator)
```

###  Alternatives

[respect/validation

The most awesome validation engine ever created for PHP

6.0k39.9M415](/packages/respect-validation)[seld/jsonlint

JSON Linter

1.3k228.7M272](/packages/seld-jsonlint)[composer/spdx-licenses

SPDX licenses list and validation library.

1.4k193.5M40](/packages/composer-spdx-licenses)[opis/json-schema

Json Schema Validator for PHP

65243.6M302](/packages/opis-json-schema)[intervention/validation

Additional validation rules for the Laravel framework

6827.2M20](/packages/intervention-validation)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

15848.2M222](/packages/laminas-laminas-validator)

PHPackages © 2026

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