mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-10 13:55:37 +00:00
String Extension
This package is a Twig extension that provides integration with the Symfony String component.
It provides a u filter that wraps a text in a UnicodeString
object to give access to methods of the class.
It also provides a slug filter which is simply a wrapper for the
AsciiSlugger's slug method.
In addition, two filters are provided to singularize and pluralize a noun.
Behind the scenes, it uses the Inflector class from the Symfony String component.