PHPackages                             azly/kphp\_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. azly/kphp\_validator

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

azly/kphp\_validator
====================

KPHP Validator

v0.0.1(3y ago)09MITPHPPHP &gt;=7.0

Since Dec 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/azlymoon/KPHP-Validator)[ Packagist](https://packagist.org/packages/azly/kphp_validator)[ RSS](/packages/azly-kphp-validator/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

KPHP VALIDATOR
==============

[](#kphp-validator)

KPHP Validator

Implemented functions
---------------------

[](#implemented-functions)

You can use following constraints for validate data if you want compile your project with KPHP:

```
Length($min ::: int = -1, $max ::: int = -1, $exact ::: int = -1);
Type($type ::: string);
NotBlank();
Email();
```

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

[](#installation)

To install this library, follow these steps:

1. [Download KPHP source code](https://github.com/VKCOM/kphp)

```
git clone https://github.com/VKCOM/kphp

```

2. [Download KPHP Validator library](https://git.miem.hse.ru/1367/kphp_validator)

```
composer require azly/kphp_validator:dev-master

```

3. [Compile KPHP from source files](https://vkcom.github.io/kphp/kphp-internals/developing-and-extending-kphp/compiling-kphp-from-sources.html)

Quick start
-----------

[](#quick-start)

1. Create **vendor/autoload.php** with composer
2. Create **index.php** and write here:

```
