gone.io/twig-extension-transform

There is no license information available for the latest version (v1.0) of this package.

v1.0 2017-05-27 16:23 UTC

This package is auto-updated.

Last update: 2021-03-23 23:32:57 UTC


README

Build Status

Add the ability to transform from one case style to another programatically.

Example:

{{ input|transform_camel_to_snake }} will output this_is_an_example for the input thisIsAnExample

###Supported transformers:

Any combination of the following:

  • Camel thisIsAnExample
  • Snake this_is_an_example
  • Screaming Snake THIS_IS_AN_EXAMPLE
  • Spinal this-is-an-example
  • Studly Caps ThisIsAnExample

using the format 'transform-from-to-target'

Credits

Written ontop of the wonderful Camel package written by Matthieu Moquet