mvccore/ext-view-helper-dataurl

MvcCore - Extension - View - Helper - Data URL - get any file content by given relative or absolute path in data url format: `data:image/png;base64,iVBOR..`.

v5.3.0 2024-11-21 12:45 UTC

This package is auto-updated.

Last update: 2024-11-21 16:01:08 UTC


README

Latest Stable Version License PHP Version

Get any file content by given relative or absolute path in data url format: data:image/png;base64,iVBOR...

Installation

composer require mvccore/ext-view-helper-dataurl

Example

<img src="<?php echo $this->DataUrl(__DIR__ . '/image.png'); ?>" />
<img src="data:image/png;base64,iVBOR.." />