A

Philter::allow() — Method in class Philter
Removes any characters that are not in the allow list
Philter::alpha() — Method in class Philter
Removes any non alphabetical characters
Philter::alphanum() — Method in class Philter
Removes any non alpha-numeric characters
Philter::apply() — Method in class Philter
Accepts a user defined closure
Philter::ascii() — Method in class Philter
Removes any non-ascii characters, transliterating as necessary

B

Philter::between() — Method in class Philter
Filters the variable, ensuring it is between $min and $max

C

Philter::contains() — Method in class Philter
Checks that the variable contains the string in $match
Philter::cut() — Method in class Philter
Shortens the length to $len characters

D

Philter::default() — Method in class Philter
Sets a default value to be returned if the variable is null
Philter::digits() — Method in class Philter
Removes any non numeric characters

I

Philter::in() — Method in class Philter
Filter to check if the value is in the provided array of values

L

Philter::ltrim() — Method in class Philter
Trims the leftmost character matching $char

M

Philter::min() — Method in class Philter
Check the input is greater than the value of max, sets var to null if less than $Min
Philter::max() — Method in class Philter
Check the input is less than the value of max, sets var to null if greater than $max

N

Philter::numeric() — Method in class Philter
Removes any non numeric characters, allows typical currency markup + or - commas and decimals

P

PhilterClass in namespace Indgy
A PHP fluent input sanitiser.

R

Philter::rtrim() — Method in class Philter
Trims the rightmost character matching $char

S

Philter::stripAttributes() — Method in class Philter
Removes the majority of HTML tags leaving only a basic set without attributes
Philter::stripHtml() — Method in class Philter
Removes all HTML and javascript
Philter::stripJavascript() — Method in class Philter
Removes all javascript
Philter::stripTags() — Method in class Philter
Removes the majority of HTML tags leaving only a basic set without attributes
Philter::stripUnprintable() — Method in class Philter
Removes any unprintable characters, this filter is processed by default

T

Philter::toBool() — Method in class Philter
Return the variable cast as a Boolean
Philter::toFloat() — Method in class Philter
Return the variable cast as a Float
Philter::toInt() — Method in class Philter
Return the variable cast as an Integer
Philter::toString() — Method in class Philter
Return the variable cast as a String
Philter::trim() — Method in class Philter
Trims the leading and trailing characters from the variable

U

Philter::utf8() — Method in class Philter
Convert the string to UTF-8 transliterating if possible

_

Philter::__construct() — Method in class Philter
The constructor requires the untrusted input.