Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (22) | Download .zip | Reputation | Support forum | Blog (1) | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2021-06-21 (2 months ago) | Not yet rated by the users | Total: 17 | All time: 10,373 This week: 98 |
Version | License | PHP version | Categories | |||
case-converter-twig 1.0 | Custom (specified... | 5 | PHP 5, Text processing, Templates |
This package is a Twig extension that provides the following filters:
{{ 'welcome-to-the-jungle'|to_camel }}
{# outputs 'welcomeToTheJungle' #}
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
services:
jawira.case.converter.twig:
class: \Jawira\CaseConverterTwig\CaseConverterExtension
tags: ['twig.extension']
<https://jawira.github.io/case-converter/>
If you liked this project, ? star it on GitHub.
This library is licensed under the MIT license.
*
<dl>
<dt>
<a href="https://packagist.org/packages/jawira/case-converter">jawira/case-converter
<img alt="GitHub stars" src="https://badgen.net/github/stars/jawira/case-converter?icon=github"/></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>
<dt>
<a href="https://packagist.org/packages/jawira/emoji-catalog">jawira/emoji-catalog
<img alt="GitHub stars" src="https://badgen.net/github/stars/jawira/emoji-catalog?icon=github"/></a>
</dt> <dd>Get access to +3000 emojis as class constants.</dd>
<dt><a href="https://packagist.org/packages/jawira/">more...</a></dt> </dl>
Files |
File | Role | Description | ||
---|---|---|---|---|
src (1 file) | ||||
tests (1 file, 1 directory) | ||||
.editorconfig | Data | Auxiliary data | ||
build.svg | Data | Auxiliary data | ||
build.xml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE.md | Lic. | License text | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | tests | / | Fixtures |
File | Role | Description |
---|---|---|
to_ada.test | Data | Auxiliary data |
to_camel.test | Data | Auxiliary data |
to_cobol.test | Data | Auxiliary data |
to_dot.test | Data | Auxiliary data |
to_kebab.test | Data | Auxiliary data |
to_lower.test | Data | Auxiliary data |
to_macro.test | Data | Auxiliary data |
to_pascal.test | Data | Auxiliary data |
to_sentence.test | Data | Auxiliary data |
to_snake.test | Data | Auxiliary data |
to_title.test | Data | Auxiliary data |
to_train.test | Data | Auxiliary data |
to_upper.test | Data | Auxiliary data |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.