Filter Bundle

Alias

Filter the alias:

$filter = new Filter\Alias();
$filter->sanitize(string $alias) : string;

Boolean

Filter the boolean:

$filter = new Filter\Boolean();
$filter->sanitize(string $boolean) : bool;

Email

Filter the email:

$filter = new Filter\Email();
$filter->sanitize(string $email) : string;

HTML

Filter the HTML:

$filter = new Filter\Html();
$filter->sanitize(string $html, bool $filter) : string;

Number

Filter the number:

$filter = new Filter\Number();
$filter->sanitize(string $number) : int;

Path

Filter the path:

$filter = new Filter\Path();
$filter->sanitize(string $path, string $separator) : string;

Search

Filter the search:

$filter = new Filter\Search();
$filter->sanitize(string $search) : string;

Special

Filter the special:

$filter = new Filter\Special();
$filter->sanitize(string $special) : string;

URL

Filter the URL:

$filter = new Filter\Url();
$filter->sanitize(string $url) : string;
Edit on GitHub