Laravel Model Images: Store images in models and serve in multiple sizes

Recommend this page to a friend!
  Info   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2021-05-08 (4 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 59 All time: 9,975 This week: 197Up
Version License PHP version Categories
laravel-model-images 1.0.0GNU General Publi...5PHP 5, Graphics, Files and Folders, L..., D...
Description Author

This package can store images in models and serve in multiple sizes.

It provides a trait that can be used in model classes of Laravel applications that can handle image file uploads by storing the files in a given directory.

The uploaded images can be filtered using a custom handler or converted to a specific format configured in the model classes.

The package can help serving the stored model images from a URL reachable by the general public.

Model objects that do not yet have associated images, can return a given default image.

It can also serve the publicly available images in multiple sizes. The sizes can be customized from within the model classes.

Innovation Award
PHP Programming Innovation award nominee
May 2021
Number 5
Many sites that display product images or other images need to display the same image in different sizes on different site pages.

This package simplifies the generation of images associated with a Laravel model class. It can generate the different versions of an image in different sizes from the original image stored by the model class.


Manuel Lemos
Picture of Ahmed Saad
  Performance   Level  
Name: Ahmed Saad <contact>
Classes: 5 packages by
Country: Egypt Egypt
Age: ???
All time rank: 256625 in Egypt Egypt
Week rank: 111 Up5 in Egypt Egypt Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imagesrc (3 files, 2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageContracts (2 files)
Files folder imageTraits (2 files)
  Plain text file ImageSaver.php Class Class source
  Plain text file InternentionImageProvider.php Class Class source
  Plain text file SaadImageProvider.php Class Class source

  Files folder image Files  /  src  /  Contracts  
File Role Description
  Plain text file ImageableContract.php Class Class source
  Plain text file ImageProviderContract.php Class Class source

  Files folder image Files  /  src  /  Traits  
File Role Description
  Plain text file HasImages.php Class Class source
  Plain text file MacroableModel.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:59
This week:0
All time:9,975
This week:197Up
For more information send a message to info at phpclasses dot org.