Skip to content

curler7/twig-base64-extension-bundle

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published