mrcoco/filetobase64

file to base64 encode

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

This package is auto-updated.

Last update: 2024-12-19 23:13:58 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');