Validator
in package
Table of Contents
Methods
- isPassword() : mixed
- check if value is password, if not die with HTTP code 400
- isString() : mixed
- check if value is string, if not die with HTTP code 400
- isStringArray() : mixed
- check if value is string array, if not die with HTTP code 400
Methods
isPassword()
check if value is password, if not die with HTTP code 400
public
static isPassword(mixed $value, string $fieldName[, mixed $message = "is not a valid password value, must contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character" ]) : mixed
Parameters
- $value : mixed
- $fieldName : string
- $message : mixed = "is not a valid password value, must contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"
isString()
check if value is string, if not die with HTTP code 400
public
static isString(mixed $value, string $fieldName[, mixed $message = "is not a string value" ]) : mixed
Parameters
- $value : mixed
- $fieldName : string
- $message : mixed = "is not a string value"
isStringArray()
check if value is string array, if not die with HTTP code 400
public
static isStringArray(mixed $value, string $fieldName[, mixed $message = "is not a string array" ]) : mixed
Parameters
- $value : mixed
- $fieldName : string
- $message : mixed = "is not a string array"