PHP Classes

REST Normalizer: Validate and filter parameters based on JSON rules

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 322 All time: 7,195 This week: 491Up
Version License PHP version Categories
rest-normalizer 1.0.1BSD License5.0PHP 5, Validation
Description 

Author

This class can validate and filter parameters based on JSON rules.

It can take a list of request parameters passed as an array or as a JSON string and validates it according to rules defined in an external files in the JSON format.

The class can traverse the parameter data and check if the entries match the types and validation rules defined in the rules file for the specific type of request.

Invalid values may be discard and logged to a given log file.

The class may also call callback functions before and after the normalization process.

Picture of Dmitry Mamontov
  Performance   Level  
Name: Dmitry Mamontov <contact>
Classes: 16 packages by
Country: Russian Federation Russian Federation
Age: 32
All time rank: 78727 in Russian Federation Russian Federation
Week rank: 198 Up11 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 6x

  Files folder image Files  
File Role Description
Files folder imageexample (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Plain text file RestNormalizer.php Class Class source

  Files folder image Files  /  example  
File Role Description
  Accessible without login Plain text file retailcrm.json Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:322
This week:0
All time:7,195
This week:491Up
User Comments (1)
Good class, can be useful.
8 years ago (Vasiliy Trutov)
80%StarStarStarStarStar