PHP code example of symplify / latte-to-twig-converter
1. Go to this page and download the library: Download symplify/latte-to-twig-converter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
symplify / latte-to-twig-converter example snippets
html
{foreach $values as $key => $value}
{$value->getName()}
{if isset($value['position'])}
{$value['position']|noescape}
{else}
{var $noPosition = true}
{/if}
{/foreach}