Zend Framework comes with a standard set of filter classes. But if you are like me I always forget what is available. The documentation has a not easy to read list of these classes; it is necessary to scroll through the page and identify these.

So I wanted to create a simple list of these, the full documentation can be found here: Zend Filter Set

  • Alnum – removing all but alphabetic and digit characters
  • Alpha – removing all but alphabetic characters
  • BaseName – this filter will return the base name of the file
  • Boolean – changes a given input to be a boolean value
  • Callback
  • Compress – Creates archives
  • Decompress
  • Decrypt – will decrypt any given string with the provided setting
  • Digits – removing all but digit characters
  • Dir – Returns directory name component of path
  • Encrypt – encrypt any given string with the provided setting
  • HtmlEntities
  • Int
  • LocalizedToNormalized
  • NormalizedToLocalized
  • Null
  • PregReplace
  • RealPath
  • StringToLower
  • StringToUpper
  • StringTrim
  • StripNewlines
  • StripTags