Moos Validation
This package can be used to validate submitted form values according to rules. The is a base class that can take a definition of validation rules and error messages and checks submitted form values to determine wether the submitted values satisfy the validation rules. Currently the base class supports validating value text length, date format, non-empty passwords, e-mail addresses, numbers, URLs and IP addresses. There is also a sub-class that provides support for additional rules for validating types of values used in Brazil like CEP, CPF, CNPJ, phone numbers, dates and user names.