File: README.md

package info (click to toggle)
php-twig 3.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,940 kB
  • sloc: php: 23,320; makefile: 110; sh: 43
file content (21 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
String Extension
================

This package is a Twig extension that provides integration with the Symfony
String component. It provides the following filters:

 * [`u`][1]: Wraps a text in a `UnicodeString` object to give access to
[methods of the class][2].

 * [`slug`][3]: Wraps the [`AsciiSlugger`][4]'s `slug` method.

 * [`singular`][5] and [`plural`][6]: Wraps the [`Inflector`][7] `singularize`
   and `pluralize` methods.

[1]: https://twig.symfony.com/u
[2]: https://symfony.com/doc/current/components/string.html
[3]: https://twig.symfony.com/slug
[4]: https://symfony.com/doc/current/components/string.html#slugger
[5]: https://twig.symfony.com/singular
[6]: https://twig.symfony.com/plural
[7]: https://symfony.com/doc/current/components/string.html#inflector