PHP Classes

Flex Validator: Validate request values based on extensible rules

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 417 All time: 6,424 This week: 660Up
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
Age: ???
All time rank: 337312 in Malaysia Malaysia
Week rank: 180 Up1 in Malaysia Malaysia Up

  Files folder image Files (13)  
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 (13)  /  src  
File Role Description
Files folder imageWikiChua (1 directory)

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

  Files folder image Files (13)  /  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 (13)  /  test  
File Role Description
  Accessible without login Plain text file ValidatorTest.php Test Unit test script

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

  Files folder image Files (13)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:417
This week:0
All time:6,424
This week:660Up