Cartoon image from Pouria vali, an iranian hero ↑↑↑
Pouria valid is a lightweight, easy-to-use and powerful library for data validation in PHP
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";
You can install Pouria valid via composer by this command
composer require arjomand/pouria-valid
For see documentation click here
MIT License, Copyright (c) 2023 MohammadAli Arjomand