Download the PHP package askancy/laravel-smart-thumbnails without Composer

On this page you can find all versions of the php package askancy/laravel-smart-thumbnails. 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-smart-thumbnails

Laravel Smart Thumbnails

Laravel Smart Thumbnails Demo

The ultimate thumbnail generation package for Laravel. Featuring intelligent smart-cropping, multi-disk support, automatic subdirectory organization, and bulletproof error handling that ensures your application's UI never breaks.

Latest Version on Packagist Total Downloads Tests License: MIT


✨ Features


📋 Requirements


📦 Installation

Install the package via Composer:

Publish the configuration file:


🚀 Quick Start

Laravel Smart Thumbnails is designed to be effortless. Use the facade directly in your Blade views:

The Bulletproof "Silent" Mode (Recommended)

This mode never throws exceptions. If an image is missing or the disk fails, it silently falls back to a placeholder.

The "Strict" Mode (For Debugging / Admin Panels)

If you want exceptions to be thrown when something goes wrong (e.g., missing original file), use strict mode:

Advanced Responsive Pictures

Leverage configured variants to easily render <picture> tags for responsive designs:


⚙️ Configuration

Your config/thumbnails.php file is where the magic happens. You can define multiple "presets", each representing a distinct context (like products, avatars, gallery).

AVIF Format Support

For ultra-modern web performance, AVIF provides ~50% smaller file sizes than JPEG and ~30% smaller than WebP. To use AVIF, ensure you have the ImageMagick extension installed and update your driver in config/thumbnails.php:

Then, simply set 'format' => 'avif' in your presets!


📁 Subdirectory Optimization

When you have millions of images, storing them all in a single folder slows down the filesystem drastically. Smart Thumbnails solves this automatically using customizable strategies:


🛠️ Maintenance & CLI Commands

Keep your application fast and clean using the built-in Artisan commands:

You can also analyze your usage via Tinker:


🔄 Upgrade Guide (v2.0)

If you are upgrading from an older version, the transition is 100% backwards compatible. No code changes are required in your views or controllers.

Enhancements included automatically:

Make sure to clear your caches after upgrading:


🤝 Contributing

We welcome pull requests and issues! Please see CONTRIBUTING.md for details on our code of conduct and development process.

Looking to help with our AI/Smart Crop Roadmap? Check out SMART_CROP_ROADMAP.md.


📄 License

The MIT License (MIT). Please see LICENSE.md for more information.

🙏 Credits


💡 Pro Tip: Always use ->urlSafe() when rendering images in public user-facing views to guarantee your frontend never breaks due to a missing file!


All versions of laravel-smart-thumbnails with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^11.0|^12.0
intervention/image Version ^3.9
ext-gd Version *
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 askancy/laravel-smart-thumbnails contains the following files

Loading the files please wait ...