dev-iegomaa/php_validation

is a small php class handle validation by using regex, filter functions validation and sanitization

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dev-iegomaa/php_validation

V1 2023-12-18 02:40 UTC

This package is auto-updated.

Last update: 2025-09-19 08:19:57 UTC


README

PHPValidation is a php class handle validation inputs.

installation

install once with composer:

composer require dev-iegomaa/php_validation

usage

/* first make instance */
use DevIegomaa\PhpValidation\Validation;
$validation = new Validation();

/** 
 * If any validation return NULL it means data not valid. 
 * to make validation send data by using setter functions.
 * to fetch data or result using getter functions.
 */
$name = '';
$validation->setName($name);
$validation->getName();

$email = '';
$validation->setEmail($email);
$validation->getEmail();

$password = '';
$validation->setPassword($password);
$validation->getPassword();

$message = '';
$validation->setMessage($message);
$validation->getMessage();

$phone = '';
$validation->setPhone($phone);
$validation->getPhone();