Strings
Winter CMS provides Twig filters for working with strings. These filters are identical to the global PHP helper functions that are documented in Helpers > Strings section.
camel
The camel
filter converts the given string to camelCase:
finish
The finish
filter adds a single instance of the given value to a string:
plural
The plural
filter converts a string to its plural form. This filter currently only supports the English language:
singular
The singular
filter converts a string to its singular form. This filter currently only supports the English language:
slug
The slug
filter generates a URL friendly "slug" from the given string:
snake
The snake
filter converts the given string to snake_case:
studly
The studly
filter converts the given string to StudlyCase:
Copyright © 2025 Winter CMS