2017 © Pedro Peláez
 

library request-variable-validation

A validation class to validate and check if exists for variables in an Object (request).

image

alpercevik/request-variable-validation

A validation class to validate and check if exists for variables in an Object (request).

  • Monday, March 19, 2018
  • by alpercevik
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

sample usage, (*1)

composer require alpercevik/request-variable-validation

```php use RequestVariableValidation\RequestVariableValidation; require_once '/vendor/autoload.php'; // composer autoloader, (*2)

$APIRequestVariableValidation = RequestVariableValidation::getInstance();, (*3)

$rules = array( "lang" => array("type"=>"letters","max_length" =>2, "min_length"=>2), "offset" => array("type"=>"numbers","max_length" =>2, "min_length"=>1), "count" => array("type"=>"numbers","max_length" =>2, "min_length"=>1) );, (*4)

$result = $APIRequestVariableValidation->checkVariableIfExists($_GET, $rules);, (*5)


**returns** ```php $result['status'] = 0; // 0: Error, 1: Success $result['message'] = "" // If an error occured

The Versions

19/03 2018

dev-master

9999999-dev

A validation class to validate and check if exists for variables in an Object (request).

  Sources   Download

MIT

The Development Requires

by Alper Cevik

validation api request validation variable validation

19/03 2018

0.04

0.04.0.0

A validation class to validate and check if exists for variables in an Object (request).

  Sources   Download

MIT

The Development Requires

by Alper Cevik

validation api request validation variable validation

06/04 2017

0.03

0.03.0.0

A validation class to validate and check if exists for variables in an Object (request).

  Sources   Download

MIT

The Development Requires

by Alper Cevik

validation api request validation variable validation

05/04 2017

0.02

0.02.0.0

A validation class to validate and check if exists for variables in an Object (request).

  Sources   Download

MIT

The Development Requires

by Alper Cevik

validation api request validation variable validation

05/04 2017

0.01

0.01.0.0

A validation class to validate and check if exists for variables in an Object (request).

  Sources   Download

MIT

The Development Requires

by Alper Cevik

validation api request validation variable validation