Wednesday, March 13, 2013

New version 2.0.2 of ApPHP DataValidator has been released

The new version 2.0.2 of of ApPHP DataValidator has been released and available now for downloading.

ApPHP DataValidator is a simple lightweight tool useful for primary general data checks. It handles numbers, strings, emails, URLs. A range of parameters is provided for a wide variety of different verifications. All parameters are used optionally and could be switched on and off for every specific value.
The DataValidator component accepts an array or an object as data container, so it can be easily used to check values got by HTTP request, obtained from database, parsed XML or CSV file or any other source as soon as data are in correct format (array('key'=>'value')). Error handling is made easy and flexible. If validation process fails, you can either obtain a generated error-message or use error-details for logging and user informing in you own style.

Data validation is typically used to make sure that incoming data has a certain quality/value. The validation process is running on a server-side.

Last changes: Version 2.0.2 (Mar 11, 2013)
  • Feature: [added] new validation type: oneOfSet (class ValidatorTypeOneOfSet).
  • Feature: [added] versioning. Validator class current version can be got with method $validator->GetVersion(), major version can be checked with $validator->CheckMajorVersion($needed).
  • Feature: [added] method $validator->GetErrorArrayIndexedByField(), which returns error array as array($fieldName => array(ValidatorError $error1, ValidatorError $error2)).
  • Feature: [improved] errors messages for strings are more specific: additional elements are added.
  • Bugs fixed

To see the script in action click here: LIVE DEMO 

To check all recent changes click here: CHANGE LOG