PHP Classes

Flex Validator: Validate request values based on extensible rules

Recommend this page to a friend!
  Info   View files View files (13)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-11-22 (12 days ago) RSS 2.0 feedNot enough user ratingsTotal: 409 All time: 6,432 This week: 282Up
Version License PHP version Categories
flex-validator 1.0.1MIT/X Consortium ...5.3Validation
Description Author

This package can validate request values based on extensible rules.

It provides a class that can validate request values given the array of the request parameters to be checked and a list of rules that should be evaluated to perform validation.

Currently it implements built-in rules like:

- Required non-empty value
- Value is the same as another given field
- Value is between a range
- Value is not less than a minimum
- Value is not more than a maximum
- Numeric value between a range
- The value is confirmed or accepted
- A valid domain
- A time before or after a value
- Made of letter, or digits, or letters and digits including dashes
- Valid date in a given format
- Valid email address
- Valid IP address
- Valid URL
- Is an integer
- Matches a regular expression
- The value is one of a given list
- The value is not one of a given list
- A file with a size smaller or larger than a limit
- A file with one of a list of allowed MIME types

The validation rules may be extended with custom rules defined by callback functions that check the values.

Picture of wiki chua
Name: wiki chua <contact>
Classes: 2 packages by
Country: Malaysia Malaysia

  Files folder image Files  
File Role Description
Files folder imagesrc (1 directory)
Files folder imagetest (1 file)
Files folder imagevendor (1 file, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file index.php Aux. Example script
Accessible without login Plain text file validates.php Example Example script

  Files folder image Files  /  src  
File Role Description
Files folder imageWikiChua (1 directory)

  Files folder image Files  /  src  /  WikiChua  
File Role Description
Files folder imageFlexValidator (3 files)

  Files folder image Files  /  src  /  WikiChua  /  FlexValidator  
File Role Description
  Plain text file Messages.php Class Class source
  Plain text file Rules.php Class Class source
  Plain text file Validator.php Class Class source

  Files folder image Files  /  test  
File Role Description
  Accessible without login Plain text file ValidatorTest.php Test Unit test script

  Files folder image Files  /  vendor  
File Role Description
Files folder imagecomposer (5 files)
  Accessible without login Plain text file autoload.php Aux. Class source

  Files folder image Files  /  vendor  /  composer  
File Role Description
  Accessible without login Plain text file autoload_classmap.php Aux. Class source
  Accessible without login Plain text file autoload_namespaces.php Aux. Class source
  Accessible without login Plain text file autoload_psr4.php Aux. Class source
  Plain text file autoload_real.php Class Class source
  Plain text file ClassLoader.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:409
This week:0
All time:6,432
This week:282Up
For more information send a message to info at phpclasses dot org.