2017 © Pedro Peláez
 

laravel imagemanager

package for ImageManager

image

elsayednofal/imagemanager

package for ImageManager

  • Sunday, May 20, 2018
  • by elsayednofal
  • Repository
  • 1 Watchers
  • 0 Stars
  • 281 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 18 % Grown

The README.md

ImageManager

Image manger to mange upload and select image with one line of code, (*1)

Installation

  • run this command composer require elsayednofal/imagemanager:3.0
  • add service provider to you app config in path config/app.php Elsayednofal\Imagemanager\ImageManagerServiceProvider::class
  • in alias add the line 'ImageManager' => Elsayednofal\Imagemanager\Controllers\MediaController::class,
  • run command php artisan vendor:publish
  • run command php artisan migrate

Config

  • edit configration from file config/image-manager
    • you can change view from backend/image-manager

Usage

1- add {!! ImageManager::loadAssets() !!} befor , (*2)

close 2- add {!! ImageManager::loadModal() !!} after , (*3)

Selector

  • one single line in your blade where you want uploader in your form :, (*4)

    //images[] is the variable you will recieve the ids of selected or uploaded images in 
    {!! ImageManager::selector('images[]') !!}
    
  • some cases like update you want to show old selected images so you can pass the ids as second prameter like :, (*5)

    //images[] is the variable you will recieve the ids of selected or uploaded images in 
    {!! ImageManager::selector('images[]',[10,15,17])?>
    
    • some cases you want the user to select just one image :
    //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)?>
    

    How to get the value of selected or uploaded image ? The ImageManger::selector() inject input hidden with value of ids of selcted images, (*6)

  • Retrive Image (display image ), (*7)

    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')}}" />
    

single Image uploader

  • one file upload {!! ImageManager::ImageUploader(['name'=>'logo'])!!}, (*8)

  • upload and update old {!! ImageManager::ImageUploader(['name'=>'logo','image'=>$logo])!!}, (*9)

  • upload file musr have width and hight {!! ImageManager::ImageUploader(['name'=>'logo','image'=>$logo,'width'=>160,'height'=>160])!!}, (*10)

Support

For any questions contact me at : elsayed_nofal@ymail.com, (*11)

The Versions

20/05 2018

dev-master

9999999-dev

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

20/05 2018

1.8

1.8.0.0

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

20/05 2018

1.6.x-dev

1.6.9999999.9999999-dev

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

20/05 2018

1.6

1.6.0.0

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

16/05 2018

1.5

1.5.0.0

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

14/05 2018

1.4.1

1.4.1.0

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

09/05 2018

1.4.0

1.4.0.0

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

09/05 2018

1.4.0.x-dev

1.4.0.9999999-dev

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

08/05 2018

1.3.x-dev

1.3.9999999.9999999-dev

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

10/12 2017

dev-V-1.2

dev-V-1.2

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

19/09 2017

1.2

1.2.0.0

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

19/09 2017

1.1.x-dev

1.1.9999999.9999999-dev

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal

01/03 2017

1.1

1.1.0.0

package for ImageManager

  Sources   Download

proprietary

by Elsayed Nofal