Skip to content

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

License

Notifications You must be signed in to change notification settings

mohammadali-arjomand/pouria-valid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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