PHP Classes


Recommend this page to a friend!
  Classes of Edward Paul   Quest PHP Validation Library   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Quest PHP Validation Library
Validate values with general and custom rules
Author: By
Last change:
Date: 1 year ago
Size: 2,008 bytes


Class file image Download

Tech Stack

  • PHP
  • Composer

Download Instruction

  1. Clone the project.
git clone projectname

  1. Install dependencies via composer.
composer install 

  1. Run php server.
php -S localhost:8000

  1. Sample Response


  1. Sample Code
$check = new \App\Checkers\Check([
    'name' => '',
    'email' => [
    'password' => 'eeee'

    'name' => [
    'email.*' => [
        new \App\Checkers\Rules\Required(),
    'password' => [

} else {

You can either define your rules as a class

new \App\Checkers\Rules\Required(),

or as a string


you can also define your own rule by extending the Rule Class

class EmailRule extends Rule

     * @param $field
     * @param $value
     * @return bool
    public function passes($field, $value): bool
        return filter_var($value, FILTER_VALIDATE_EMAIL);

     * @param $field
     * @return string
    public function message($field): string
        return ucwords($field. ' Must Be A Valid Email Address');

If you prefer it to br string base, you can define it in the RuleMap.php

'email' => EmailRule::class

Organization Password Policy

The service is very flexible, and new rules can be added without much code.

What is needed is to create a new rule, extend the RULE class, and define all your conditions and organization password policy like the one below

  • Password/Passphrase Length Policy
  • Password Deny List
  • Password Combination
  • Password Checks to be sure it isn't part of the leaked password