PHP Classes


Recommend this page to a friend!
  Classes of jawira   PHP Case Converter for Twig   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Case Converter for Twig
Convert parameter values used in Twig templates
Author: By
Last change:
Date: 1 year ago
Size: 2,567 bytes


Class file image Download

? Twig extension for Case Converter

This package is a Twig extension that provides the following filters:

  • `to_ada`
  • `to_camel`
  • `to_cobol`
  • `to_dot`
  • `to_kebab`
  • `to_lower`
  • `to_macro`
  • `to_pascal`
  • `to_sentence`
  • `to_snake`
  • `to_title`
  • `to_train`
  • `to_upper`

Latest Stable Version Total Downloads composer.lock .gitattributes License


{{ 'welcome-to-the-jungle'|to_camel }}

{# outputs 'welcomeToTheJungle' #}

How to install

Install with Composer:

$ composer require jawira/case-converter-twig

If you are not using Symfony Flex, you also have to register the extension:

# config/packages/case_converter_twig.yaml
    class: \Jawira\CaseConverterTwig\CaseConverterExtension
    tags: ['twig.extension']




If you liked this project, ? star it on GitHub.


This library is licensed under the MIT license.


Packages from jawira



<a href="">jawira/case-converter
<img alt="GitHub stars" src=""/></a>

</dt> <dd>Convert strings between 13 naming conventions: Snake case, Camel case, Pascal case, Kebab case, Ada case, Train case, Cobol case, Macro case, Upper case, Lower case, Sentence case, Title case and Dot notation. </dd>


<a href="">jawira/emoji-catalog
<img alt="GitHub stars" src=""/></a>

</dt> <dd>Get access to +3000 emojis as class constants.</dd>

<dt><a href="">more...</a></dt> </dl>