Craft/Twig wrapper for Stringy – a string manipulation library with multibyte support, by danielstjules
- Download and unzip
- Move the
/stringy
folder to your/craft/plugins
folder - Install from the Control Panel (
/admin/settings/plugins
)
{{ entry.title|stringy('shuffle') }}
{{ entry.body|stringy('safeTruncate', 50, '...') }}
{{ tagline|stringy('lines')|first }}
{{ someVar|stringy('isJson') ? 'I can haz JSON!' }}
Please see the docs for Stringy for all available methods and parameters.
This plugin is provided free of charge and you can do whatever you want with it. Stringy is unlikely to mess up your stuff, but just to be clear: the author is not responsible for data loss or any other problems resulting from the use of this plugin.
Please report any bugs, feature requests or other issues here. Note that this is a hobby project and no promises are made regarding response time, feature implementations or bug fixes.
Pull requests are extremely welcome
- Initial public release