PHP code example of dev-iegomaa / php_validation

1. Go to this page and download the library: Download dev-iegomaa/php_validation library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dev-iegomaa / php_validation example snippets



/* 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();


composer