2017 © Pedro Peláez
 

library php-rvalidation

PHP form validation plugin

image

rahulreghunath/php-rvalidation

PHP form validation plugin

  • Sunday, November 12, 2017
  • by rahulreghunath
  • Repository
  • 0 Watchers
  • 1 Stars
  • 11 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP-Bootstrap Validaton Plugin

A PHP plugin to validate form using the bootstrap validator without writing any javascript., (*1)

Installation

Using composer, (*2)

composer require rahulreghunath/php-rvalidation

Usage

Include * Form class * jQuery * bootstrap js,css * bootstrapValidator.min.js * bootstrapValidator.min.css, (*3)

in your page, (*4)

$obj = new Form;

It uses two functions, (*5)

    1. validate() to validate a particular field with given validation rules

    eg: $obj -> validate(field_name,array("validation rules"));, (*6)

    validation rules are 
    
            "required" - use if it is a required field
    
            "min"=>"minium length" - to set minium length
    
            "max"=>"maxium length" - to set minium length
    
            "email" - use if it is email field
    
            "mobile" - Indian (10 digit) mobile number ( can be customized )
    
            "pin" - Indian Zip code ( can be customized )
    
            "different"=>"different_field different_field_name"
    
            "identical"=>"identical_field identical_field_name"
    
            "remote"=>"remotelocation"
    
            "regexp"=>"type of field"
    
                type of fields are : text,name,age address,pin,mobile number etc
    
                "rmsg" - used with remote validation to display custom error message if remote 
                validation is failed 

eg: $obj -> validate("password",array("required","label"=>"password","regexp"=>"name"));, (*7)

    1. applyvalidations() to apply the generated validation rules to the page Only work if bootstrap validater is included in the page.

eg: <script> <?php $obj->applyvalidations("form_id");?> </script>, (*8)

The Versions

12/11 2017

dev-master

9999999-dev https://github.com/rahulreghunath/php-form-validation

PHP form validation plugin

  Sources   Download

MIT

by Rahul Reghunath

validation bootstrap validation

12/11 2017

dev-add-license-1

dev-add-license-1 https://github.com/rahulreghunath/php-form-validation

PHP form validation plugin

  Sources   Download

MIT

by Rahul Reghunath

validation bootstrap validation

05/10 2017

v1.0

1.0.0.0 https://github.com/rahulreghunath11/php-form-validation

PHP form validation plugin

  Sources   Download

MIT

by Rahul Reghunath

validation bootstrap validation