2017 © Pedro Peláez
 

library validator

A simple easy-to-use form validator.

image

rajuthapa8086/validator

A simple easy-to-use form validator.

  • Sunday, May 1, 2016
  • by rajuthapa8086
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

Validator

(A simple easy to use form validator), (*1)

Install

composer require rajuthapa8086/validator

How To Use

 'trim_required|between:6:30|alnum_under',
    'password' => 'trim_required|between:6:30|match:confirm_password',
    'confirm_password' => 'trim_required|match:password',
);


$inputs = array(
    'username' => 'as##ASAAS',
    'password' => 'aaa000a0a0s',
    'confirm_password' => 'asasas0as0d0as0d0as',
);

// OR
// $inputs => $_POST;


$errors = $validator->run($rules, $inputs);

// var_dump($errors);

```

**Now in your view or template file.**

```php



The Versions

01/05 2016

dev-master

9999999-dev

A simple easy-to-use form validator.

  Sources   Download

GPL

The Development Requires

by Avatar rajuthapa8086

01/05 2016

0.1

0.1.0.0

A simple easy-to-use form validator.

  Sources   Download

GPL

The Development Requires

by Avatar rajuthapa8086

01/05 2016

dev-develop

dev-develop

A simple easy-to-use form validator.

  Sources   Download

GPL

The Development Requires

by Avatar rajuthapa8086

01/05 2016

dev-tests

dev-tests

A simple easy-to-use form validator.

  Sources   Download

GPL

The Development Requires

by Avatar rajuthapa8086