Built-In Filters
Centum\Filter\Blacklist
Filters out any values in a blacklist.
Centum\Filter\Callback
Filters a value based on a callback.
Centum\Filter\Cast\ToArray
Casts any value to an array.
Centum\Filter\Cast\ToBool
Casts any value to a boolean.
Centum\Filter\Cast\ToInteger
Casts resources, scalars, and null values to integers.
Centum\Filter\Cast\ToNull
Filters any value to null
.
Centum\Filter\Cast\ToString
Casts values to a string. Objects are cast using __toString()
or are serialised; arrays are JSON encoded.
Centum\Filter\Group
Groups multiple Filters together so that they can be used as one.
Centum\Filter\String\Alpha
Filters a string to only alphabetical characters.
Centum\Filter\String\Alphanumeric
Filters a string to only alphanumeric characters.
Centum\Filter\String\Base64Decode
Base64 decodes a string.
Centum\Filter\String\Base64Encode
Base64 encodes a string.
Centum\Filter\String\CamelCaseToSlug
Converts camel case to a slug (lowercase, alphanumeric with dashes).
Centum\Filter\String\FileName
Filters a value to only allow valid characters for a file name.
Centum\Filter\String\Prefix
Adds a prefix to a string.
Centum\Filter\String\Replace
Replace all occurrences of the search string with the replacement string.
Centum\Filter\String\Rot13
Performs the rot13
transformation on a string.
Centum\Filter\String\SlugToCamelCase
Converts a slug (lowercase, alphanumeric with dashes) to camel case.
Centum\Filter\String\Suffix
Adds a suffix to a string.
Centum\Filter\String\ToLower
Filters a string to lowercase.
Centum\Filter\String\ToUpper
Filters a string to uppercase.
Centum\Filter\String\Trim
Trims a string.
Centum\Filter\Whitelist
Filters only values in a whitelist.