PHPackages                             vancodx/php-data-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. vancodx/php-data-validation

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

vancodx/php-data-validation
===========================

VanCodX PHP Data Validation

1.0.2(10mo ago)0201MITPHPPHP ^8.3

Since Feb 27Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/vancodx/php-data-validation)[ Packagist](https://packagist.org/packages/vancodx/php-data-validation)[ RSS](/packages/vancodx-php-data-validation/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (5)Used By (1)

VanCodX PHP Data Validation
===========================

[](#vancodx-php-data-validation)

This library contains a set of static methods for validation the type of variables and arguments of functions and methods. The main goal is to improve the quality of data validation and static analysis. Each validation method has "@phpstan-assert-if-true" tag in its DocBlock comment to narrow the type of "value" argument.

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

[](#installation)

Install this package with the following command:

```
composer require vancodx/php-data-validation

```

Usage
-----

[](#usage)

Example of validation the type of a function argument:

```
