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.2.0 2024-05-23 07:17 UTC

This package is auto-updated.

Last update: 2024-10-23 08:33:44 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.." />