Download the PHP package emiliolodigiani/laravel-images without Composer

On this page you can find all versions of the php package emiliolodigiani/laravel-images. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-images

Laravel Images

Responsive image resizing with srcset generation for Laravel.

Automatically resizes images to multiple WebP variants and generates <img> tags with srcset for optimal loading. Configurable image sources allow each project to define its own directories and URL structure.

Installation

Publish the config file:

Configuration

Define your image sources in config/images.php:

Each source defines:

Usage

Blade component

The component outputs an <img> tag with srcset and sizes attributes. If no resized versions exist, it falls back to the original.

HTML body helper

For rich text content with embedded <img> tags:

This transforms all <img> tags in the HTML to responsive versions with srcset, sizes, and loading="lazy".

Resize after upload

The package does not handle file storage — your app saves files using Laravel's filesystem (Storage, Livewire storeAs(), controller store(), etc.). After saving, call ImageResizer::resize() with the absolute path to generate all resized versions.

The resize() method automatically detects which configured source the file belongs to based on its path.

Deleting images

Use ImageResizer::delete() to remove an image and all its resized versions:

Batch resize

Generate missing resized versions for all configured sources:

Programmatic access

How it works

  1. When an image is resized, WebP versions are generated for each configured width that is smaller than the original
  2. Images are scaled by their longer side (portrait images scale by height, not width)
  3. A PHP manifest file at storage/framework/image-sizes.php tracks which sizes exist for fast lookup (no database queries)
  4. The manifest is automatically updated after each resize operation and OPcache-invalidated for zero-downtime deploys

Customizing the view

Publish the Blade view to customize the <img> output:

The view will be at resources/views/vendor/laravel-images/components/img.blade.php.

Requirements

License

MIT


All versions of laravel-images with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^11.0|^12.0|^13.0
intervention/image Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package emiliolodigiani/laravel-images contains the following files

Loading the files please wait ...