PHPackages                             jawira/case-converter-twig - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. jawira/case-converter-twig

ActiveLibrary[Templating &amp; Views](/categories/templating)

jawira/case-converter-twig
==========================

🔤 Twig extension for Case Converter

v1.0.1(3y ago)217.0k↓15.1%MITPHPPHP &gt;=7.1.3

Since Jun 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jawira/case-converter-twig)[ Packagist](https://packagist.org/packages/jawira/case-converter-twig)[ RSS](/packages/jawira-case-converter-twig/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (6)Used By (0)

🔤 Twig extension for Case Converter
===================================

[](#-twig-extension-for-case-converter)

This Twig extension is port from **jawira/case-converter**.

[![Latest Stable Version](https://camo.githubusercontent.com/f3bdef904f7ef116f5f68bd5a6c05a7c8f6f59ad6a41e41b8d958b6a85b17a85/68747470733a2f2f706f7365722e707567782e6f72672f6a61776972612f636173652d636f6e7665727465722d747769672f76)](//packagist.org/packages/jawira/case-converter-twig)[![Total Downloads](https://camo.githubusercontent.com/33d5bd07b3fcbc380f1b17287fd97935956037679102777174f472e918b428a3/68747470733a2f2f706f7365722e707567782e6f72672f6a61776972612f636173652d636f6e7665727465722d747769672f646f776e6c6f616473)](//packagist.org/packages/jawira/case-converter-twig)[![composer.lock](https://camo.githubusercontent.com/05681dd2603d3d77adb61d9952134c00a0d78b044b32feae01b2e19e6b0219fd/68747470733a2f2f706f7365722e707567782e6f72672f6a61776972612f636173652d636f6e7665727465722d747769672f636f6d706f7365726c6f636b)](//packagist.org/packages/jawira/case-converter-twig)[![.gitattributes](https://camo.githubusercontent.com/f702da78cef609e84213e04e93f9932cd53c5680d5dac1b0ea12228de134af9a/68747470733a2f2f706f7365722e707567782e6f72672f6a61776972612f636173652d636f6e7665727465722d747769672f67697461747472696275746573)](//packagist.org/packages/jawira/case-converter-twig)[![License](https://camo.githubusercontent.com/8012d6d5a29a6794b5a8806dbe319e8895276736c3b2e1822ce46d48e179c066/68747470733a2f2f706f7365722e707567782e6f72672f6a61776972612f636173652d636f6e7665727465722d747769672f6c6963656e7365)](//packagist.org/packages/jawira/case-converter-twig)

Usage
-----

[](#usage)

This library provides the following filters:

**from\_****to\_**`from_auto``from_ada``to_ada``from_camel``to_camel``from_cobol``to_cobol``from_dot``to_dot``from_kebab``to_kebab``from_lower``to_lower``from_macro``to_macro``from_pascal``to_pascal``from_sentence``to_sentence``from_snake``to_snake``from_title``to_title``from_train``to_train``from_uppder``to_upper`Use a `to_*` filter to [automatically](https://jawira.github.io/case-converter/detection-algorithm.html) change the casing convention of a *string*:

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

{# outputs 'welcomeToTheJungle' #}
```

Optionally, you can call a `from_*` filter to specify the casing convention of input *string*:

```
{{ 'user.first-name'|from_dot|to_upper }}

{# outputs 'USER FIRST-NAME' #}
```

How to install
--------------

[](#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
services:
  jawira.case.converter.twig:
    class: \Jawira\CaseConverterTwig\CaseConverterExtension
    tags: [ 'twig.extension' ]
```

Contributing
------------

[](#contributing)

If you liked this project, ⭐ [star it on GitHub](https://github.com/jawira/case-converter-twig).

License
-------

[](#license)

This library is licensed under the [MIT license](LICENSE.md).

---

Packages from jawira
--------------------

[](#packages-from-jawira)

 [jawira/case-converter ![GitHub stars](https://camo.githubusercontent.com/252838515757e452113329ed46602db164b1f5d2575da97f33367c34aa8a0eaf/68747470733a2f2f62616467656e2e6e65742f6769746875622f73746172732f6a61776972612f636173652d636f6e7665727465723f69636f6e3d676974687562)](https://packagist.org/packages/jawira/case-converter)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.  [jawira/emoji-catalog ![GitHub stars](https://camo.githubusercontent.com/22510675fa5644c26212f855b959175260a169fce3b2df950b692923af91eacd/68747470733a2f2f62616467656e2e6e65742f6769746875622f73746172732f6a61776972612f656d6f6a692d636174616c6f673f69636f6e3d676974687562)](https://packagist.org/packages/jawira/emoji-catalog)Get access to +3000 emojis as class constants.[more...](https://packagist.org/packages/jawira/)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~123 days

Total

5

Last Release

1316d ago

Major Versions

v0.0.2 → v1.0.02021-08-21

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/496541?v=4)[Jawira Portugal](/maintainers/jawira)[@jawira](https://github.com/jawira)

---

Top Contributors

[![jawira](https://avatars.githubusercontent.com/u/496541?v=4)](https://github.com/jawira "jawira (11 commits)")

---

Tags

twigtwig-extensioncase-converter

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jawira-case-converter-twig/health.svg)

```
[![Health](https://phpackages.com/badges/jawira-case-converter-twig/health.svg)](https://phpackages.com/packages/jawira-case-converter-twig)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91492.0M315](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36763.2M221](/packages/twig-intl-extra)[twig/string-extra

A Twig extension for Symfony String

22046.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22918.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21914.8M162](/packages/symfony-ux-twig-component)[bluetel-solutions/twig-truncate-extension

Twig Extension to truncate nested HTML, safely!

11100.0k](/packages/bluetel-solutions-twig-truncate-extension)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
