This package wraps the 1tomany/data-uri library into an easy to use Symfony bundle.
Install the bundle using Composer:
composer require 1tomany/data-uri-bundle
No configuration is necessary for the bundle. The denormalizer for OneToMany\DataUri\Contract\Record\DataUriInterface objects is automatically tagged and configured.
DataUriInterfacedenormalizer via theOneToMany\DataUriBundle\Serializer\DataUriNormalizerclass.onetomany:data-uri:encode-fileconsole command to generate a base64 encoded data URI representation of a file.
The MIT License