PHPackages                             syncxplus/php-validation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. syncxplus/php-validation

AbandonedArchivedLibrary

syncxplus/php-validation
========================

Fork from blackbelt/php-validation

1.0.0(10y ago)063PHP

Since Apr 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/syncxplus/php-validation)[ Packagist](https://packagist.org/packages/syncxplus/php-validation)[ RSS](/packages/syncxplus-php-validation/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

A PHP 5.3 Class for Easy Form Validation
========================================

[](#a-php-53-class-for-easy-form-validation)

This class follows Zend Framework naming conventions for easy drop-in as a substitute to Zend\_Validation. If you opt out of using the bulky Zend\_Form on your projects, you might choose to use this for quick and painless form validation.

A Quick Example
---------------

[](#a-quick-example)

The example below shows how to throw validation exceptions with the custom exception. You can then retrieve the error messages from the calling method. It is not good practice to validate your data in your controller, this should be handled in your Model. This is just a quick example.

```
