twig/string-extra
Twig extension integrating Symfony String: add filters u (UnicodeString methods), slug (AsciiSlugger), and singular/plural (Inflector) to manipulate text, generate slugs, and handle basic inflection directly in Twig templates.
Use when:
Look elsewhere if:
Stringy or Python’s str utilities).For Executives: "This package lets our templating team handle string operations—like formatting, truncating, or sanitizing text—directly in Twig, without backend round-trips. It reduces technical debt by standardizing these tasks, speeds up content updates, and aligns with our Symfony/Twig stack. For example, we could auto-generate SEO-friendly slugs or localized date formats in templates, improving both performance and developer productivity. The MIT license and active maintenance (last release: 2026) make it a low-risk, high-reward choice."
For Engineering:
*"Twig/String-Extra adds native Twig filters for common string tasks (e.g., truncate, slugify, sanitize) that are currently handled inconsistently across the codebase. Benefits:
How can I help you explore Laravel packages today?