News Feed
Sections




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

DZone.com:
Zend_Validate for the win
December 03, 2010 @ 10:32:58

In this new post to DZone.com today Giorgio Sironi looks at what he considers one of the more valuable yet underestimated components of the Zend Framework - Zend_Validate.

Zend_Validate is a component of Zend Framework which provides validation classes which out-of-the-box enable you to check from string lengths to stranger properties like conformance to regular expressions or to a standard for barcodes. [...] Some parts of Zend_Validate are quite complex, and tie-in with the other components: there are file-related validations on size, hash and more to attach to your forms; in the domain-specific category instead, we can find validator for credit card numbers consistency, or barcodes; isbn codes; and more...

He includes a code sample to show of just some of the validators the component includes like: alpha-numeric, "between", valid email address, valid IP address, matches a regular expression and, a very handy feature of the component, setting up chains of validations.

0 comments voice your opinion now!
zendvalidate example chain zendframework


blog comments powered by Disqus

Similar Posts

Stoimen.com: Iterate over YouTube Channel with Zend_Gdata_YouTube

Zend Developer Zone: The ZendCon Sessions Episode 9: QEDWiki and Zend Framework

Rob Allen's Blog: Updated tutorial for Zend Framework 2 beta 1

Richard Thomas' Blog: jQPie 0.3 released

Padraic Brady's Blog: Zend_Service_Openid Is dead; But It's Reincarnation Is Coming


Community Events





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


composer symfony opinion list version interview language library podcast tool framework laravel community security introduction artisanfiles voicesoftheelephpant series conference release

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