Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.03 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.03 KB

Pouria Valid

Pouria vali Cartoon image from Pouria vali, an iranian hero ↑↑↑

Introduction

Pouria valid is a lightweight, easy-to-use and powerful library for data validation in PHP

Example

It's a example of Pouria valid

<?php

use Arjomand\PouriaValid\Pouria;

$pouria = new Pouria($_REQUEST);
$pouria->conditions([
    "name" => [
        "required",
        "min=5",
        "max=16"
    ]
]);

echo $pouria->check ? "Data is valid" : "Data is invalid";

Installation

You can install Pouria valid via composer by this command

composer require arjomand/pouria-valid

Documentation

For see documentation click here

Donate

License

MIT License, Copyright (c) 2023 MohammadAli Arjomand