2017-25 © Pedro Peláez
 

library twig-extension-transform

image

gone.io/twig-extension-transform

  • Saturday, May 27, 2017
  • by matthewbaggett
  • Repository
  • 1 Watchers
  • 0 Stars
  • 890 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 15 % Grown

The README.md

Twig-Transform

Build Status, (*1)

Add the ability to transform from one case style to another programatically., (*2)

Example:, (*3)

{{ input|transform_camel_to_snake }} will output this_is_an_example for the input thisIsAnExample, (*4)

Supported transformers:

Any combination of the following:, (*5)

  • Camel thisIsAnExample
  • Snake this_is_an_example
  • Screaming Snake THIS_IS_AN_EXAMPLE
  • Spinal this-is-an-example
  • Studly Caps ThisIsAnExample, (*6)

    using the format 'transform-from-to-target', (*7)

Credits

Written ontop of the wonderful Camel package written by Matthieu Moquet, (*8)

The Versions