PHPackages                             spacetab-io/harmony-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. spacetab-io/harmony-validation

ActiveLibrary

spacetab-io/harmony-validation
==============================

Asynchronous validation library

1.1.1(5y ago)13871[1 PRs](https://github.com/spacetab-io/harmony-validation-php/pulls)1MITPHPPHP &gt;=7.3

Since Nov 16Pushed 5y agoCompare

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

READMEChangelog (2)Dependencies (19)Versions (8)Used By (1)

Validation
==========

[](#validation)

[![Latest Stable Version](https://camo.githubusercontent.com/1100e815ab847c44fbdfc7ffbe5d1202e1f7d1ac991f5dca7889a2c3e8d480d0/68747470733a2f2f706f7365722e707567782e6f72672f6861726d6f6e79696f2f76616c69646174696f6e2f762f737461626c65)](https://packagist.org/packages/harmonyio/validation)[![Build Status](https://camo.githubusercontent.com/af7a113c0a732483527623302cf17ca07678dbabd06582abc979dd00ef34b9c6/68747470733a2f2f7472617669732d63692e6f72672f4861726d6f6e79494f2f56616c69646174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/HarmonyIO/Validation)[![Build status](https://camo.githubusercontent.com/231d6be07fc0a61a7f90707e22f316e5928b6dff0156808822d34d985bcf415f/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f68356278383162766e6361746c69756d2f6272616e63682f6d61737465723f7376673d74727565)](https://ci.appveyor.com/project/PeeHaa/validation/branch/master)[![Coverage Status](https://camo.githubusercontent.com/5bb090b17e04a27a8b1b7d268f0a99d17dc4dfcee5c2e55957cb74e3c8659ff3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4861726d6f6e79494f2f56616c69646174696f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/HarmonyIO/Validation?branch=master)[![License](https://camo.githubusercontent.com/ec1ee9c06d700a64ba5cabcdbdd96b14633a5b9376a53679529531dafc72b189/68747470733a2f2f706f7365722e707567782e6f72672f6861726d6f6e79696f2f76616c69646174696f6e2f6c6963656e7365)](https://packagist.org/packages/harmonyio/validation)

Async validation library

Requirements
------------

[](#requirements)

- PHP 7.3
    - ext-ctype
    - ext-dom
    - ext-fileinfo
    - ext-filter
    - ext-gd
    - ext-hash
    - ext-json
    - ext-libxml
    - ext-mbstring
- Redis

In addition for non-blocking context one of the following event libraries should be installed:

- [ev](https://pecl.php.net/package/ev)
- [event](https://pecl.php.net/package/event)
- [php-uv](https://github.com/bwoebi/php-uv)

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

[](#installation)

```
composer require harmonyio/validation

```

Usage
-----

[](#usage)

This library is based on the [amphp concurrency framework](https://amphp.org/).

### Basic usage

[](#basic-usage)

Validating a value against a single rule:

```
