matthewbaggett/twig-extension-transform
Composer 安装命令:
composer require matthewbaggett/twig-extension-transform
包简介
Add the ability to transform from one case style to another programatically.
README 文档
README
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
统计信息
- 总下载量: 609
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2021-05-16