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

Chris Shiflett's Blog:
Zend_Filter Reviewed on SitePoint
Mar 29, 2006 @ 07:03:39

Previously, the Zend_Filter module of the Zend Framework was reviewed on SitePoint. Today, one of the contributors to the framework, Chris Shiflett, has some of his responses to the comments made.

Maarten Manders graciously took the time to review the Zend_Filter component of the Zend Framework. I think criticism and public discussion are healthy. Unfortunately, I don't have time to offer a very detailed response, but I'll try to remedy that with a followup post later in the week.

One thing worth noting is that Zend_Filter was extracted from Zend_InputFilter shortly before the preview release. Because it provides such a rigid approach to input filtering, some contributors pointed out that Zend_InputFilter does not provide enough flexibility for simple cases such as filtering an argument passed to a method.

Chris also goes on to comment that the Zend_Filter class is, in his opinion, "far from impressive". Of course, paired with its (older) brother, Zend_InputFilter, it can lead to some much better results. The wraps up the post with a brief, high-level introduction to the Zend_InputFilter class just so everyone's on the same page.

tagged: zend_filter zend_inputfilter zend framework review zend_filter zend_inputfilter zend framework review

Link:

Chris Shiflett's Blog:
Zend_Filter Reviewed on SitePoint
Mar 29, 2006 @ 07:03:39

Previously, the Zend_Filter module of the Zend Framework was reviewed on SitePoint. Today, one of the contributors to the framework, Chris Shiflett, has some of his responses to the comments made.

Maarten Manders graciously took the time to review the Zend_Filter component of the Zend Framework. I think criticism and public discussion are healthy. Unfortunately, I don't have time to offer a very detailed response, but I'll try to remedy that with a followup post later in the week.

One thing worth noting is that Zend_Filter was extracted from Zend_InputFilter shortly before the preview release. Because it provides such a rigid approach to input filtering, some contributors pointed out that Zend_InputFilter does not provide enough flexibility for simple cases such as filtering an argument passed to a method.

Chris also goes on to comment that the Zend_Filter class is, in his opinion, "far from impressive". Of course, paired with its (older) brother, Zend_InputFilter, it can lead to some much better results. The wraps up the post with a brief, high-level introduction to the Zend_InputFilter class just so everyone's on the same page.

tagged: zend_filter zend_inputfilter zend framework review zend_filter zend_inputfilter zend framework review

Link:

SitePoint PHP Blog:
Zend_Filter Reviewed, Blacklist / Whitelist Filters
Mar 28, 2006 @ 18:20:37

The Zend Framework has definitely made a huge splash in the PHP community, and everyone is picking their piece of it to cover. In this new post from the SitePoint PHP blog, Maarten Manders highlights the Zend_Filter module.

I like Zend Framework's Zend_Filter class. It's basically a set of methods for validating untrusted data. Although the two arguably most important features isEmail() and isUri() (the latter can be worked around with Zend_Uri) are still missing, the whole thing looks promising already.

He starts with a few of his thoughts on the package ("Clean up the code of isHostname", "International support for isPhone") and some code to show how it can be implemented - filtering for use in a regular expression, validation of a string by a character whitelist as well as blacklisting, and using the Zend_Filter module for a more flexible isName.

tagged: zend framework zend_filter whitelist blacklist zend framework zend_filter whitelist blacklist

Link:

SitePoint PHP Blog:
Zend_Filter Reviewed, Blacklist / Whitelist Filters
Mar 28, 2006 @ 18:20:37

The Zend Framework has definitely made a huge splash in the PHP community, and everyone is picking their piece of it to cover. In this new post from the SitePoint PHP blog, Maarten Manders highlights the Zend_Filter module.

I like Zend Framework's Zend_Filter class. It's basically a set of methods for validating untrusted data. Although the two arguably most important features isEmail() and isUri() (the latter can be worked around with Zend_Uri) are still missing, the whole thing looks promising already.

He starts with a few of his thoughts on the package ("Clean up the code of isHostname", "International support for isPhone") and some code to show how it can be implemented - filtering for use in a regular expression, validation of a string by a character whitelist as well as blacklisting, and using the Zend_Filter module for a more flexible isName.

tagged: zend framework zend_filter whitelist blacklist zend framework zend_filter whitelist blacklist

Link: