PHP code example of elsayednofal / imagemanager

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

    

elsayednofal / imagemanager example snippets

  
 //images[] is the variable you will recieve the ids of selected or uploaded images in 
 {!! ImageManager::selector('images[]') !!}
 
  
 //images[] is the variable you will recieve the ids of selected or uploaded images in 
 {!! ImageManager::selector('images[]',[10,15,17])
  
 //images[] is the variable you will recieve the ids of selected or uploaded images in 
 // [] represent selected ids
 // false => means only one image can be set
 {!! ImageManager::selector('images[]',[],false)

   ImageManager::getImagePath($id,$size='')
   id image id
   size can be '' for orginal size ,
               'thumb' for thumbnial and
               'small' for small image

   <img src="{{ImageManager::getImagePath($activity->mainImage->image_id,'small')}}" />