2017 © Pedro Peláez
 

library images-converter

convert image to base64,convert base64 to image

image

base64/images-converter

convert image to base64,convert base64 to image

  • Wednesday, April 13, 2016
  • by themerrr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 57 % Grown

The README.md

Base_64_Converter

Encode and Decode images to Base64, (*1)

Author :

Themer MABROUK
themer.mabrouk@proxym-it.com, (*2)

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');

        //...

      }

The Versions

13/04 2016

dev-master

9999999-dev

convert image to base64,convert base64 to image

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Mabrouk Themer

image convert base64