Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 691 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 691 Bytes

Curler7 Twig Base64 Extension Bundle

Convert image to base64 string

Installation

composer require curler7/twig-base64-extension-bundle

Usage

<img src="{{ 'img/logo.svg'|image64 }}" alt="Logo" />

Config Reference

# config/packages/curler7_twig_base_64_extension.yaml
curler7_twig_base_64_extension:
    converter:
        image_to_base_64_converter: ImageToBase64Converter::class
    twig:
        base_64_image_extension:    Base64ImageExtension::class

Running Tests

To run tests, run the following command

docker compose up -d

Authors