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 objects that implement the interface OneToMany\DataUri\Contract\Record\TemporaryFileInterface is automatically tagged and configured.
TemporaryFileInterfacenormalizer via theOneToMany\DataUriBundle\Serializer\TemporaryFileNormalizerclass.onetomany:data-uri:encode-fileconsole command to generate a base64 encoded data URI representation of a file.
The MIT License