mrcoco/filetobase64

file to base64 encode

dev-master 2019-08-19 10:42 UTC

This package is auto-updated.

Last update: 2024-10-19 22:47:46 UTC


README

Usage:

install in Composer

composer require mrcoco/filetobase64

php code

require __DIR__ . '/../vendor/autoload.php';

use Mrcoco\Filetobase64;

$filetobase64 = new Filetobase64();
# $file2base64 = new File2base64(['bmp' => 'image/bmp']);

$filetobase64->toFile('filetobase64.png', 'filetobase64.txt');
# echo $file2base64->toBase64('filetobase64.png');