PHPackages                             oxid-esales/smarty-to-twig-converter - 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. oxid-esales/smarty-to-twig-converter

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

oxid-esales/smarty-to-twig-converter
====================================

A script to convert smarty template engine to twig

v1.0.1(5y ago)285713MITPHPPHP ^7.1CI passing

Since Nov 21Pushed 1w ago8 watchersCompare

[ Source](https://github.com/OXID-eSales/smarty-to-twig-converter)[ Packagist](https://packagist.org/packages/oxid-esales/smarty-to-twig-converter)[ RSS](/packages/oxid-esales-smarty-to-twig-converter/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (8)Versions (6)Used By (0)

Converting Smarty templates to Twig
===================================

[](#converting-smarty-templates-to-twig)

Converting tool located at [GitHub](https://github.com/OXID-eSales/oxideshop-to-twig-converter)allows to convert existing Smarty template files to Twig syntax. The tool besides standard Smarty syntax is adjusted to handle custom OXID modifications and extensions.

### Installation

[](#installation)

Clone the repository:

`git clone https://github.com/OXID-eSales/smarty-to-twig-converter.git`

Install dependencies:

`cd smarty-to-twig-converter`

`composer install`

### Usage

[](#usage)

The convert command tries to fix as much coding standards problems as possible on a given file, directory or database.

### path and ext parameters

[](#path-and-ext-parameters)

Converter can work with files and directories:

`php toTwig convert --path=/path/to/dir``php toTwig convert --path=/path/to/file`

By default files with `.html.twig` extension will be created. To specify different extensions use `--ext` parameter:

`php toTwig convert --path=/path/to/dir --ext=.js.twig`

### database and database-columns parameters

[](#database-and-database-columns-parameters)

It also can work with databases:

`php toTwig convert --database="mysql://user:password@localhost/db"`

The `--database` parameter gets [database doctrine-like URL](https://www.doctrine-project.org/projects/doctrine-dbal/en/2.9/reference/configuration.html#connecting-using-a-url). Converter by default converts following tables columns:

- oxactions.OXLONGDESC
- oxactions.OXLONGDESC\_1
- oxactions.OXLONGDESC\_2
- oxactions.OXLONGDESC\_3
- oxcontents.OXCONTENT
- oxcontents.OXCONTENT\_1
- oxcontents.OXCONTENT\_2
- oxcontents.OXCONTENT\_3
- oxartextends.OXLONGDESC
- oxartextends.OXLONGDESC\_1
- oxartextends.OXLONGDESC\_2
- oxartextends.OXLONGDESC\_3
- oxcategories.OXLONGDESC
- oxcategories.OXLONGDESC
- oxcategories.OXLONGDESC\_2
- oxcategories.OXLONGDESC\_3

The `--database-columns` option lets you choose tables columns to be converted (the table column names has to be specified in table\_a.column\_b format and separated by comma):

`php toTwig convert --database="..." --database-columns=oxactions.OXLONGDESC,oxcontents.OXCONTENT`

You can also blacklist the table columns you don't want using -table\_a.column\_b:

`php toTwig convert --database="..." --database-columns=-oxactions.OXLONGDESC_1,-oxcontents.OXCONTENT_1`

### converters parameter

[](#converters-parameter)

The `--converters` option lets you choose the exact converters to apply (the converter names must be separated by a comma):

`php toTwig convert --path=/path/to/dir --ext=.html.twig --converters=for,if,misc`

You can also blacklist the converters you don't want if this is more convenient, using -name:

`php toTwig convert --path=/path/to/dir --ext=.html.twig --converters=-for,-if`

### dry-run, verbose and diff parameters

[](#dry-run-verbose-and-diff-parameters)

A combination of `--dry-run`, `--verbose` and `--diff` will display summary of proposed changes, leaving your files unchanged.

All converters apply by default.

The `--dry-run` option displays the files that need to be fixed but without actually modifying them:

`php toTwig convert --path=/path/to/code --ext=.html.twig --dry-run`

### config-path parameter

[](#config-path-parameter)

Instead of building long line commands it is possible to inject PHP configuration code. Two example files are included in main directory: `config_file.php` and `config_database.php`. To include config file use --config-path parameter:

`php toTwig convert --config-path=config_file.php`

Config script should return instance of `toTwig\Config\ConfigInterface`. It can be created using `toTwig\Config\Config::create()` static method.

### Known issues

[](#known-issues)

- In Twig by default all variables are escaped. Some of variables should be filtered with `|raw` filter to avoid this. This means all templates, html code and strings containing unsafe characters like `< > $ &`should be filtered with `|raw` before echoing. You can check if all necessary variables are escaped using web browser's inspector tool. Instead of using `raw` filter to echo variable holding a template, you can use `template_from_string` function. More on it in the [documentation](https://twig.symfony.com/doc/3.x/functions/template_from_string.html).

    Smarty:

    ```
    [{$product->oxarticles__oxtitle->value}]
    ```

    Twig after converting:

    ```
    {{ product.oxarticles__oxtitle.value }}
    ```

    Twig after fixing:

    ```
    {{ product.oxarticles__oxtitle.value|raw }}
    ```
- Variable scope. In Twig variables declared in templates have scopes limited by block (`{% block %}`, `{% for %}` and so on). Some variables should be declared outside these blocks if they are used outside.

    Smarty:

    ```
    [{foreach $myColors as $color}]
        [{$color}]
    [{/foreach}]
    [{$color}]
    ```

    Twig after converting:

    ```
    {% for color in myColors %}
        {{ color }}
    {% endfor %}
    {{ color }}
    ```

    Twig after fixing:

    ```
    {% for color in myColors %}
        {{ color }}
    {% endfor %}
    {{ myColors|last }}
    ```
- Redeclaring blocks - it’s forbidden in Twig. You must use a unique name for each block in given template.

    Smarty:

    ```
    [{block name="foo"}]
        ...
    [{/block}]
    [{block name="foo"}]
        ...
    [{/block}]
    ```

    Twig after converting:

    ```
    {% block foo %}
        ...
    {% endblock %}
    {% block foo %}
        ...
    {% endblock %}
    ```

    Twig after fixing:

    ```
    {% block foo_A %}
        ...
    {% endblock %}
    {% block foo_B %}
        ...
    {% endblock %}
    ```
- Access to array item `$myArray.$itemIndex` should be manually translated to `myArray[itemIndex]`

    Smarty:

    ```
    [{$myArray.$itemIndex}]
    ```

    Twig after converting:

    ```
    {{ myArray.$itemIndex }}
    ```

    Twig after fixing:

    ```
    {{ myArray[itemIndex] }}
    ```
- Uses of regex string in templates - the tool can break or work incorrectly on so complex cases - it’s safer to manually copy&amp;paste regular expression.

    Smarty:

    ```
    [{birthDate|regex_replace:"/^([0-9]{4})[-]/":""|regex_replace:"/[-]([0-9]{1,2})$/":""}]
    ```

    Twig after converting:

    ```
    {{ birthDate|regex_replace("/^([0-9]{4)})[-]/":""|regex_replace("/[-]([0-9]{1,) 2})$/":"" }}
    ```

    Twig after fixing:

    ```
    {{ birthDate|regex_replace("/^([0-9]{4})[-]/","")|regex_replace("/[-]([0-9]{1,2})$/","") }}
    ```
- `[{section}]` - `loop` is array or integer which triggers different behaviours. The tool is not able to detect variable type, so you need to check what is used in each `loop`.

    Smarty:

    ```
    [{section name="month" start=1 loop=13}]
        [{$smarty.section.month.index}]
    [{/section}]
    [{section name=customer loop=$custid}]
        id: [{$custid[customer]}]
    [{/section}]
    ```

    Twig after converting:

    ```
    {% for month in 1..13 %}
        {{ loop.index0 }}
    {% endfor %}
    {% for customer in 0..$custid %}
        id: {{ custid[customer] }}
    {% endfor %}
    ```

    Twig after fixing:

    ```
    {% for month in 1..12 %}
        {{ loop.index0 }}
    {% endfor %}
    {% for customer in custid %}
        id: {{ customer }}
    {% endfor %}
    ```
- String concatenation - the tool has issues with opening and closing strings. Usage of Smarty variables inside the string might cause the converter to fail. Twig does not support this kind of concatenation. You should check places where you concat strings held inside variables and use Twig `~` instead of variables inside the string. In converted template you should look for patterns like `$var\_name`

    Smarty:

    ```
    [{assign var="sUrl" value="http://www.example.com?aid=`$sAccountId`&wid=`$sWidgetId`&csize=20&start=0"}]
    [{assign var="divId" value=oxStateDiv_$stateSelectName}]
    ```

    Twig after converting:

    ```
    {% set sUrl = "http://www.example.com?aid=`$sAccountId`&wid=`$sWidgetId`&csize=20&start=0" %}
    {% set divId = oxStateDiv_$stateSelectName %}
    ```

    Twig after fixing:

    ```
    {% set sUrl = "http://www.example.com?aid=" ~ sAccountId ~ "&wid=" ~ sWidgetId ~ "&csize=20&start=0" %}
    {% set divId = "oxStateDiv_" ~ stateSelectName %}
    ```
- `$` signs are not always removed from variables. Sometimes when expression is too complex, the converter will not remove `$` sign from variable name. After conversion you should check your templates for `$` signs.

    Smarty:

    ```
    [{$oViewConf->getImageUrl($sEmailLogo, false)}]
    ```

    Twig after converting:

    ```
    {{ oViewConf.getImageUrl($sEmailLogo, false) }}
    ```

    Twig after fixing:

    ```
    {{ oViewConf.getImageUrl(sEmailLogo, false) }}
    ```
- Twig offers easy access to fist element of loop. Instead of using indexed element of variable you can use `loop.index0` or for current iteration `loop.index`. Converter does not handle constructions like `$smarty.section.arg`. More can be read in the [Twig 'for' documentation](https://twig.symfony.com/doc/2.x/tags/for.html).

    Smarty:

    ```
    [{if $review->getRating() >= $smarty.section.starRatings.iteration}]
    ```

    Twig after converting:

    ```
    {% if review.getRating() >= smarty.section.starRatings.iteration %}
    ```

    Twig after fixing:

    ```
    {% if review.getRating() >= loop.index %}
    ```
- In some places access to global variables has to be adjusted. In converted code look for word `smarty` and replace it with `twig`.

    Smarty:

    ```
    [{$smarty.capture.loginErrors}]
    ```

    Twig after converting:

    ```
    {{ smarty.capture.loginErrors }}
    ```

    Twig after fixing:

    ```
    {{ twig.capture.loginErrors }}
    ```
- Properties accessing differs in Smarty and Twig and sometimes it has to be fixed manually. You have to explicitly call magic getter if there is no magic isset defined. Also if you want to access class property without calling a getter you have to use array-like syntax.

    Smarty:

    ```
    [{foreach from=$cattree->aList item=pcat}]
        [{pcat.val}]
    ```

    Twig after converting:

    ```
    {% for pcat in cattree.aList %}
        {{ pcat.val }}
    ```

    Twig after fixing:

    ```
    {% for pcat in cattree.__get('aList') %}
        {{ pcat['val'] }}
    ```
- The converter does not always convert logic operators like `||` and `&&` if they are not separated by space. `||` has to be manually changed to `or` and `&&` to `and`.

    Smarty:

    ```
    [{if $product->isNotBuyable()||($aVariantSelections&&$aVariantSelections.selections)||$product->hasMdVariants()}]
    ```

    Twig after converting:

    ```
    {% if product.isNotBuyable()||(aVariantSelections&&$aVariantSelections.selections) or product.hasMdVariants() %}
    ```

    Twig after fixing:

    ```
    {% if product.isNotBuyable() or (aVariantSelections and aVariantSelections.selections) or product.hasMdVariants() %}
    ```
- If you access request variables from template, please consider refactoring any templates that do this. If it is not possible, please use functions `get_global_cookie` or `get_global_get` provided with Twig engine. In case you need access to other request variables, you will have to extend one of these functions on your own.

    Smarty:

    ```
    [{if $smarty.get.plain == '1'}] popup[{/if}]
    ```

    Twig after converting:

    ```
    {% if smarty.get.plain == '1' %} popup{% endif %}
    ```

    Twig after fixing:

    ```
    {% if get_global_get('plain') == '1' %} popup{% endif %}
    ```
- You might need to manually check logic in template files. Some places will require usage of `is same as` comparison, which uses PHP's `===` instead of `==`. This might be necessary when checking if variable was set, contains information, if it is a `0` or if it is a `null`. There is a problem with checking non existing (null) properties. E.g. we want to check the value of non-existing property `oxarticles__oxunitname`. Twig checks with `isset`if this property exists and it’s not, so Twig assumes that property name is function name and tries to call it.

    Smarty:

    ```
    [{if $_sSelectionHashCollection}]
        [{assign var="_sSelectionHashCollection" value=$_sSelectionHashCollection|cat:","}]
    [{/if}]
    ```

    Twig after converting:

    ```
    {% if _sSelectionHashCollection %}
        {% set _sSelectionHashCollection = _sSelectionHashCollection|cat(",") %}
    {% endif %}
    ```

    Twig after fixing:

    ```
    {% if _sSelectionHashCollection is not same as("") %}
        {% set _sSelectionHashCollection = _sSelectionHashCollection|cat(",") %}
    {% endif %}
    ```

### Converted plugins and syntax pieces

[](#converted-plugins-and-syntax-pieces)

Here is list of plugins and syntax pieces with basic examples how it is converted. Note that these examples are only to show how it is converted and doesn't cover all possible cases as additional parameters, block nesting, repetitive calls (as for counter and cycle functions) etc.

### Core Smarty

[](#core-smarty)

#### assign =&gt; set

[](#assign--set)

Converter name: `assign`

Smarty:
`[{assign var="name" value="Bob"}]`

Twig:
`{% set name = "Bob" %}`

#### block =&gt; block

[](#block--block)

Converter name: `block`

Smarty:
`[{block name="title"}]Default Title[{/block}]`

Twig:
`{% block title %}Default Title{% endblock %}`

#### capture =&gt; set

[](#capture--set)

Converter name: `CaptureConverter`

Smarty:
`[{capture name="foo" append="var"}] bar [{/capture}]`

Twig:
`{% set foo %}{{ var }} bar {% endset %}`

#### Comments

[](#comments)

Converter name: `comment`

Smarty:
`[{* foo *}]`

Twig:
`{# foo #}`

#### counter =&gt; set

[](#counter--set)

Converter name: `counter`

Smarty:
`[{counter}]`

Twig:
`{% set defaultCounter = ( defaultCounter|default(0) ) + 1 %}`

#### cycle =&gt; smarty\_cycle

[](#cycle--smarty_cycle)

Converter name: `cycle`

Smarty:
`[{cycle values="val1,val2,val3"}]`

Twig:
`{{ smarty_cycle(["val1", "val2", "val3"]) }}`

#### foreach =&gt; for

[](#foreach--for)

Converter name: `for`

Smarty:
`[{foreach $myColors as $color}]foo[{/foreach}]`

Twig:
`{% for color in myColors %}foo{% endfor %}`

#### if =&gt; if

[](#if--if)

Converter name: `if`

Smarty:
`[{if !$foo or $foo->bar or $foo|bar:foo["hello"]}]foo[{/if}]`

Twig:
`{% if not foo or foo.bar or foo|bar(foo["hello"]) %}foo{% endif %}`

#### include =&gt; include

[](#include--include)

Converter name: `include`

Smarty:
`[{include file='page_header.tpl'}]`

Twig:
`{% include 'page_header.tpl' %}`

#### insert =&gt; include

[](#insert--include)

Converter name: `insert`

Smarty:
`[{insert name="oxid_tracker" title="PRODUCT_DETAILS"|oxmultilangassign product=$oDetailsProduct cpath=$oView->getCatTreePath()}]`

Twig:
`{% include "oxid_tracker" with {title: "PRODUCT_DETAILS"|oxmultilangassign, product: oDetailsProduct, cpath: oView.getCatTreePath()} %}`

#### mailto =&gt; mailto

[](#mailto--mailto)

Converter name: `mailto`

Smarty:
`[{mailto address='me@example.com'}]`

Twig:
`{{ mailto('me@example.com') }}`

#### math =&gt; core Twig math syntax

[](#math--core-twig-math-syntax)

Converter name: `math`

Smarty:
`[{math equation="x + y" x=1 y=2}]`

Twig:
`{{ 1 + 2 }}`

#### Variable conversion

[](#variable-conversion)

Converter name: `variable`

SmartyTwig\[{$var}\]{{ var }}\[{$contacts.fax}\]{{ contacts.fax }}\[{$contacts\[0\]}\]{{ contacts\[0\] }}\[{$contacts\[2\]\[0\]}\]{{ contacts\[2\]\[0\] }}\[{$person-&gt;name}\]{{ person.name }}\[{$oViewConf-&gt;getUrl($sUrl)}\]{{ oViewConf.getUrl(sUrl) }}\[{($a &amp;&amp; $b) || $c}\]{{ (a and b) or c }}#### Other

[](#other)

Converter name: `misc`

SmartyTwig\[{ldelim}\]foo\[{ldelim}\]foo\[{literal}\]foo\[{/literal}\]{# literal #}foo{# /literal #}\[{strip}\]foo\[{/strip}\]{% spaceless %}foo{% endspaceless %}### OXID custom extensions

[](#oxid-custom-extensions)

#### oxcontent =&gt; include\_content

[](#oxcontent--include_content)

Converter name: `oxcontent`

Smarty:
`[{oxcontent ident='oxregisteremail'}]`

Twig:
`{% include_content 'oxregisteremail' %}`

#### oxeval =&gt; include(template\_from\_string())

[](#oxeval--includetemplate_from_string)

Converter name: `OxevalConverter`

Smarty:
`[{oxeval var=$variable}]`

Twig:
`{{ include(template_from_string(variable)) }}`

#### oxgetseourl =&gt; seo\_url

[](#oxgetseourl--seo_url)

Converter name: `oxgetseourl`

Smarty:
`[{oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=basket"}]`

Twig:
`{{ seo_url({ ident: oViewConf.getSelfLink()|cat("cl=basket") }) }}`

#### oxhasrights =&gt; hasrights

[](#oxhasrights--hasrights)

Converter name: `oxhasrights`

Smarty:
`[{oxhasrights object=$edit readonly=$readonly}]foo[{/oxhasrights}]`

Twig:
`{% hasrights { "object": "edit", "readonly": "readonly", } %}foo{% endhasrights %}`

#### oxid\_include\_dynamic =&gt; include\_dynamic

[](#oxid_include_dynamic--include_dynamic)

Converter name: `oxid_include_dynamic`

Smarty:
`[{oxid_include_dynamic file="form/formparams.tpl"}]`

Twig:
`{% include_dynamic "form/formparams.tpl" %}`

#### oxid\_include\_widget =&gt; include\_widget

[](#oxid_include_widget--include_widget)

Converter name: `oxid_include_widget`

Smarty:
`[{oxid_include_widget cl="oxwCategoryTree" cnid=$oView->getCategoryId() deepLevel=0 noscript=1 nocookie=1}]`

Twig:
`{{ include_widget({ cl: "oxwCategoryTree", cnid: oView.getCategoryId(), deepLevel: 0, noscript: 1, nocookie: 1 }) }}`

#### oxifcontent =&gt; ifcontent

[](#oxifcontent--ifcontent)

Converter name: `oxifcontent`

Smarty:
`[{oxifcontent ident="TOBASKET" object="aObject"}]foo[{/oxifcontent}]`

Twig:
`{% ifcontent ident "TOBASKET" set aObject %}foo{% endifcontent %}`

#### oxinputhelp =&gt; include "inputhelp.tpl"

[](#oxinputhelp--include-inputhelptpl)

Converter name: `oxinputhelp`

Smarty:
`[{oxinputhelp ident="foo"}]`

Twig:
`{% include "inputhelp.tpl" with {'sHelpId': getSHelpId(foo), 'sHelpText': getSHelpText(foo)} %}`

#### oxmailto =&gt; oxmailto

[](#oxmailto--oxmailto)

Converter name: `oxmailto`

Smarty:
`[{oxmailto address='me@example.com'}]`

Twig:
`{{ mailto('me@example.com') }}`

#### oxmultilang =&gt; translate

[](#oxmultilang--translate)

Converter name: `oxmultilang`

Smarty:
`[{oxmultilang ident="ERROR_404"}]`

Twig:
`{{ translate({ ident: "ERROR_404" }) }}`

#### oxprice =&gt; format\_price

[](#oxprice--format_price)

Converter name: `oxprice`

Smarty:
`[{oxprice price=$basketitem->getUnitPrice() currency=$currency}]`

Twig:
`{{ format_price(basketitem.getUnitPrice(), { currency: currency }) }}`

#### oxscript =&gt; script

[](#oxscript--script)

Converter name: `oxscript`

Smarty:
`[{oxscript include="js/pages/details.min.js" priority=10}]`

Twig:
`{{ script({ include: "js/pages/details.min.js", priority: 10, dynamic: __oxid_include_dynamic }) }}`

#### oxstyle =&gt; style

[](#oxstyle--style)

Converter name: `oxstyle`

Smarty:
`[{oxstyle include="css/libs/chosen/chosen.min.css"}]`

Twig:
`{{ style({ include: "css/libs/chosen/chosen.min.css" }) }}`

#### section =&gt; for

[](#section--for)

Converter name: `section`

Smarty:
`[{section name=picRow start=1 loop=10}]foo[{/section}]`

Twig:
`{% for picRow in 1..10 %}foo{% endfor %}`

#### Filters

[](#filters)

SmartyTwigsmartwordwrapsmart\_wordwrapdate\_formatdate\_formatoxaddparamsadd\_url\_parametersoxaddslashesaddslashesoxencloseencloseoxfilesizefile\_sizeoxformattimeformat\_timeoxformdateformat\_dateoxmultilangassigntranslateoxmultilangsaltranslate\_salutationoxnubmerformatformat\_currencyoxtruncatetruncateoxwordwrapwordwrap### Running database conversion PHPUnit tests

[](#running-database-conversion-phpunit-tests)

Note for CI: To run database conversion PHPUnit tests, sqlite is required. You can install it by running following commands:

```
$ sudo apt-get install sqlite3
$ sudo apt-get install php7.2-sqlite

```

Bugs and Issues
---------------

[](#bugs-and-issues)

If you experience any bugs or issues, please report them in the section **OXID eShop (all versions)** under category **Twig engine** of

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance64

Regular maintenance activity

Popularity22

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~180 days

Total

2

Last Release

2184d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1374817?v=4)[oxid](/maintainers/oxid)[@OxID](https://github.com/OxID)

---

Top Contributors

[![tkcreateit](https://avatars.githubusercontent.com/u/42207462?v=4)](https://github.com/tkcreateit "tkcreateit (111 commits)")[![skoczekj](https://avatars.githubusercontent.com/u/42207445?v=4)](https://github.com/skoczekj "skoczekj (109 commits)")[![Sieg](https://avatars.githubusercontent.com/u/98882?v=4)](https://github.com/Sieg "Sieg (26 commits)")[![mariolorenz](https://avatars.githubusercontent.com/u/5525363?v=4)](https://github.com/mariolorenz "mariolorenz (7 commits)")[![vilmal](https://avatars.githubusercontent.com/u/3765393?v=4)](https://github.com/vilmal "vilmal (4 commits)")[![NikolaIvanovski](https://avatars.githubusercontent.com/u/8055347?v=4)](https://github.com/NikolaIvanovski "NikolaIvanovski (2 commits)")[![cgsmith](https://avatars.githubusercontent.com/u/570018?v=4)](https://github.com/cgsmith "cgsmith (2 commits)")[![sankarsuda](https://avatars.githubusercontent.com/u/798414?v=4)](https://github.com/sankarsuda "sankarsuda (2 commits)")[![angel-dimitrov](https://avatars.githubusercontent.com/u/12593227?v=4)](https://github.com/angel-dimitrov "angel-dimitrov (1 commits)")[![marcelglaeser](https://avatars.githubusercontent.com/u/6400771?v=4)](https://github.com/marcelglaeser "marcelglaeser (1 commits)")[![liulka-oxid](https://avatars.githubusercontent.com/u/56023474?v=4)](https://github.com/liulka-oxid "liulka-oxid (1 commits)")[![cesnauskast](https://avatars.githubusercontent.com/u/5363052?v=4)](https://github.com/cesnauskast "cesnauskast (1 commits)")

### Embed Badge

![Health badge](/badges/oxid-esales-smarty-to-twig-converter/health.svg)

```
[![Health](https://phpackages.com/badges/oxid-esales-smarty-to-twig-converter/health.svg)](https://phpackages.com/packages/oxid-esales-smarty-to-twig-converter)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)

PHPackages © 2026

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