PHP code example of cloudinary / cloudinary_cake_php

1. Go to this page and download the library: Download cloudinary/cloudinary_cake_php 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/ */

    

cloudinary / cloudinary_cake_php example snippets

 echo __('Current Photo:'); 
 echo $this->Form->cl_image_tag($photo['Photo']['cloudinaryIdentifier'],
            array("width" => 60, "height" => 60, "crop" => "thumb", "gravity" => "face")); 
 echo $this->Form->create('Photo', array('type' => 'file')); 
 echo __('Edit Photo'); 

                echo $this->Form->input('id');
                # Backend upload:
                echo $this->Form->input('cloudinaryIdentifier');
                # Direct upload:
                #echo $this->Form->input('cloudinaryIdentifier', array("type" => "direct_upload"));
            
 echo $this->Form->end(__('Submit'));