News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

php|architect:
More powerful Validation from Respect
March 09, 2011 @ 08:50:12

On the php|architect blog today John Mertic looks at a validation library that's been created to filter and handle user input for your application without too much effort on your part - Validation from a group called Respect.

It's simply called Validation, and it is a very simple and straightforward PHP 5.3 based validation library. The goal for them is to make validation easy and painless, using clever constructs like chaining and enabling developers to create reuseable components.

He shows a sample of how it all works by creating a validator that checks to be sure a given value is numeric. He also shows how you can chain the validation methods to create more complicated rules and even check for a set of value types (ex. numbers 1-10 or the string "NO"). You can find the code for Validate on their github repository.

0 comments voice your opinion now!
validation user input github respect tutorial


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm

Boston PHP User Group: February 2006 Meeting - 7th @ 6:30pm

Internet.com: Storing Blobs in Microsoft Azure with the Zend Framework

Jake Smith's Blog: Callback Filter Iterator in PHP 5.3/5.4

IBM developerWorks: Cloud computing with PHP, Part 1: Using Amazon S3 with the Zend Framework


Community Events











Don't see your event here?
Let us know!


symfony2 introduction application framework package podcast project release unittest install language facebook database composer component hack security performance hhvm example

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework