Login   Register  
PHP Classes
elePHPant
Icontem

Checker: Validate the values of function arguments

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files Documentation   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-09-06 (16 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 110 This week: 5All time: 7,556 This week: 344Up
Version License PHP version Categories  
checker 1.0BSD License5.3PHP 5, Validation
Description Author  

This class can validate the values of function arguments.

It can take the name and the value of arguments passed to a function and check the values to verify if they are of the expected types.

Currently it can check if the argument value is a resource, callable, boolean, array, non-empty array, string, string or null, non-empty string, non-empty string or null, non-negative integer, non-negative integer or null, positive integer, positive integer or null, float, positive float, object, object or null.

When the argument does not match the expected type, the class throws an exception.

Picture of wapmorgan
Name: wapmorgan is available for providing paid consulting. Contact wapmorgan .
Classes: 9 packages by
Country: Russian Federation Russian Federation
Age: ???
All time rank: 189450 in Russian Federation Russian Federation
Week rank: 48 Up3 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Files folder image Files  
File Role Description
Files folder imageexamples (6 files)
Files folder imageSelfTestingCode (2 files)
Plain text file Checker.php Class Class file
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file doc.md Doc. Documentation
Accessible without login Plain text file example.php Example Example script
Plain text file OldChecker.php Class Class source
Accessible without login Plain text file OldChecker.README.md Data Auxiliary data
Accessible without login Plain text file README.md Data Auxiliary data

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file extending.class.php Example Example script
  Accessible without login Plain text file extending.trait.php Example Example script
  Accessible without login Plain text file intro.class.php Example Example script
  Accessible without login Plain text file intro.trait.php Example Example script
  Accessible without login Plain text file testing.ins.php Example Example script
  Accessible without login Plain text file testing.outs.php Example Example script

  Files folder image Files  /  SelfTestingCode  
File Role Description
  Plain text file Checker.php Class Class source
  Plain text file CheckerTrait.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 86%Total:110All time:7,556
 This week:5This week:344Up