Latte |qrcode supporting.
The best way to install tacoberu/latte-qrcode is using Composer:
$ composer require tacoberu/latte-qrcode
Then register the extension in the config file:
# app/config/config.neon
latte:
extensions:
- Taco\Latte\QrcodeLatteExtension
<img src="{('Hi')|qrcode}" alt="qrcode with text"/>
<img src="{$contact|qrcode}" alt="qrcode with QrcodeContact"/>
<img src="{$email|qrcode}" alt="qrcode with QrcodeEmail"/>
<img src="{$pay|qrcode}" alt="qrcode with QrcodeSPDPay"/>
Latte filters is under the MIT license. See the LICENSE file for details.