Lib for add symbols to start or end of string in Twig templates.
composer require zhukmax/twigpad
Basic example:
<?php
require_once 'vendor/autoload.php';
$loader = new Twig_Loader_Array(array(
'index' => 'Hello {{ rightpad(name, 9, "#") }}',
));
$twig = new Twig_Environment($loader);
$twig->addExtension(new Zhukmax\TwigPad\TwigPad());
echo $twig->render('index', array('name' => 'Max'));
// => Hello Max######