base64 / images-converter
convert image to base64,convert base64 to image
Installs: 128
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/base64/images-converter
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-10-17 23:08:06 UTC
README
Encode and Decode images to Base64
Author :
Themer MABROUK
themer.mabrouk@proxym-it.com
Installation :
Via Composer :
$composer require base64/images-converter "dev-master"
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new images\base64ConverterBundle\imagesbase64ConverterBundle(),
// ...
);
}
Usage :
public function indexAction(Request $request)
{
//...
$base64_converter=$this->container->get('base64_converter');
//Encode Image to base64
$encoded_img=$base64_converter->imageToBase64('path');
//Decode Image and make a file
$base64_converter->Base64ToImage($encoded_img,'path/newFile');
//...
}