Menu

Home

a-tom
Attachments
hrc_fundamentals.pdf (368136 bytes)

HTTP Request Checker (HRC) is a low-level validator of user inputs on the web. You can validate fields from a simple form or map and validate values in more complex structures such as arrays or objects submitted by JavaScript/jQuery or similar using AJAX.

As a low-level validator, HRC does not provide any automated form generation which can be seen in other existing validators. HRC is here to validate, not to do anything with the GUI.

TODO: upload source code!

What HRC CAN do

  • Validate variables against provided rules
  • You can create your custom rules and validation functions
  • HRC provides an easy access to create rules validating using filter_var(); filter_var() uses quite a lot of arguments
  • You can validate basically any structure. For example: string, array of strings, array of objects,....
  • If validation fails and an exception is thrown, you can figure out where the failure occurred based on the information contained in the exception

What HRC CANNOT do

  • Modify/transform/sanitize the checked values in any way
  • Set a custom message for each rule in case it fails. However, an exception containing useful information is thrown on failure

This functionality could, however, be pretty easily implemented in an extending class.

Learn More

-For a better understanding of HRC, check the attachment or read the PDF file here.
-For examples of usage, refer to the example Wiki page.
- API generated from source comments by Apigen

Project Members:


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.