/pouria-valid

A lightweight, easy-to-use and powerful library for data validation in PHP

Primary LanguagePHPMIT LicenseMIT

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