Documentation
SPHPlayground manual
sphplayground
sphplayground

Customizable value filtering

PHP has a variety of functions and classes that can handle data filering. Filter Classes give a simple object oriented extension to these native filters.

The Filter is the base interface for all variable filtering. What the actual filtering does in particular case is totally up to the implementator. Build-in filters focus on manipulatong scalar values like strings and numeric values.

HtmlIntender filter

HtmlIntender indents HTML for development and testing. It uses Dindent, and thus it will not sanitize or otherwise manipulate your output beyond indentation.

SQLFormatter class

SQLFormatter indents SQL for development and testing. It uses Dindent, and thus it will not sanitize or otherwise manipulate your output beyond indentation.

FilterAggregate filter

This filter is an aggregation of other individual filters. These filters can be anything that can be called as a function and of cource other classes implementing Filter.

ArrayFilter filter

This filter is an aggregation of other individual filters. These filters can be anything that can be called as a function and of cource other classes implementing Filter.

Filter can easily be used for filtering PHP array values.