This package has a set of classes used in data validation.
The data can come from a HTML form or other source.
This package was designed to work with or without a templating engine like Smarty. It was also designed to be extensible and easily changed.
All the validation code is in the phalidators class. The logic that manages the validation process is in the (parent) phalidate class. If you want to add additional validation, update the phalidators class.
It can be used to test one field, doing a boolean test, or can be used for a series of tests, and then retrieve the aggregate errors (as IDs or localized messages).
It has support for localized error messages (currently English, Spanish and German). |