PHPackages                             wijoc/validify-mi - 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. wijoc/validify-mi

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

wijoc/validify-mi
=================

A stand alone validation for PHP and Wordpress.

1.3.1(9mo ago)145MITPHPPHP ^7.4 || ^8.0 || ^8.1 || ^8.2

Since Sep 3Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/wijoc/validify-mi)[ Packagist](https://packagist.org/packages/wijoc/validify-mi)[ RSS](/packages/wijoc-validify-mi/feed)WikiDiscussions master Synced 1mo ago

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

Validify-MI
===========

[](#validify-mi)

Standalone PHP Validation that is compatible with procedural PHP and WordPress. This project provides a set of validation rules to simplify data validation in your projects, along with data sanitization specifically for WordPress projects. Heavily influenced by Laravel validation and [rakit/validation](https://github.com/rakit/validation), this project originated from a personal need and is still in beta development. All inputs are highly appreciated.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Validation Rules](#validation-rules)
    - [Required](#required)
    - [Required If](#required-if)
    - [Email](#email)
    - [URL](#url)
    - [Numeric](#numeric)
    - [Max Length](#max)
    - [Min Length](#min)
    - [Greater Than](#greater-than)
    - [Greater Than Equal](#greater-than-equal)
    - [Compare Number](#comapre-number)
    - [Less Than](#less-than)
    - [Less Than Equal](#less-than-equal)
    - [Date](#date)
    - [Date More Than](#date-more-than)
    - [Date Less Than](#date-less-than)
    - [Date Between](#date-between)
    - [Exists](#exists)
    - [Not Exists](#not-exists)
    - [Match](#match)
    - [Not Match](#not-match)
    - [Files](#file)
    - [File Max Size](#file-max-size)
    - [Mime](#mime)
    - [In](#in)
    - [Regex](#regex)
    - [Type Is](#type-is)
- [Sanitisation ](#sanitisation):
    - ['email'](#email)
    - ['textarea'](#textarea)
    - ['text'](#text)
    - ['kses'](#kses)
    - ['ksespost'](#ksespost)
- [Contributing](#contributing)
- [License](#license)

Features
--------

[](#features)

- Simple syntax
- Supports multiple validation rules
- Compatible with customs error messages
- Compatible with procedural PHP and WordPress
- Support Wordpress sanitazion
- Support nested validation

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

[](#installation)

You can install the library via Composer:

```
composer  require  wijoc/validify-mi
```

Usage
-----

[](#usage)

Here is how you use the validation using ::make function. Validator::make has 4 arguments :

1. Input that you want to validate.
2. Rules of validation.
3. Custom validation message.
4. Sanitizion rules. (for now only available for wordpress project) All arguments should be an array.

```
