PHP code example of normeno / base64-handler
1. Go to this page and download the library: Download normeno/base64-handler library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
normeno / base64-handler example snippets
$base64Handler = new Base64Handler();
$file = 'path/to/file.png';
$convert = $base64Handler->toBase64($file);
$file = 'http://icons.iconarchive.com/icons/graphicloads/100-flat/256/home-icon.png';
$convert = $base64Handler->toBase64($file);
$base64 = 'xyz';
$convert = $base64Handler->toFile($base64);
$base64 = 'xyz';
$getFile = $base64Handler->getBase64Type($base64);