Download the PHP package board3r/laravel-responsive-image without Composer

On this page you can find all versions of the php package board3r/laravel-responsive-image. 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-responsive-image

Laravel Responsive Image

Blade component and url routing to generate responsive images and thumbnails.

Be lazy, just use an image and the package will be responsive alone.

Boost the PageSpeed.

Requirements

Image processing

This package use by default intervention/image, needed to have at least one image processing extension installed.

Image optimizer

This package use by default spatie/image-optimizer, see optimization tools section

Install

Basic usage

Store the images in the laravel local disk in the directory /storage/app/private/responsive-image (default settings)

Html render :

All thumbnails are ready using the package routes.

Documentation

Configuration

The configuration will be published automatically under the folder /config/responsive-image.php during the installation.

In the documentation the tag @conf make a reference of the config file of this package.

All the example are illustrated with default Laravel And Laravel Responsive Image configuration and environnement.

Component parameters

image (required)

Set the src attribute image of img html tag.

@conf

:thumbs (optional)

List the thumbnails needed for good responsive performance. Pass an array for each thumb with one or more following query parameters

@conf

:useCustomThumbs

By default this parameter is disabled, but the package offer the possibility to use specifics thumbnails and this parameter is set to true.

Don't forget to specify a width associated with the thumbnail to stay responsive.

loading, fetchPriority and decoding

These parameters will impact the page loading.

Allowed values :

width and height (optional)

By default these values are calculated, but force them to avoid some problems of calculation

Get more attributes

As all components in Laravel, you can add other attributes, they will reuse to display the image.

Don't forget important thing to keep the image responsive and a performant page loading, the attribute sizes.

This attribute is not directly manage by the package because each case is different, but it's very important to set it. More information

Environnement

Possibility to use some environnement variable to configure a default config value

Extending Processors

The package is only delivered with Intervention Image

Possibility to extend with another image processor following the ProcessorInterface::class

@conf

Extending Optimizers

The package is delivered with Spatie Image Optimizer and another one to disable image optimisation (DisableOptimizer::class)

Possibility to extend with another image optimizer following the OptimizerInterface::class

@conf


All versions of laravel-responsive-image with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
cardinalby/content-disposition Version ^1.1
intervention/image Version ^3.11
spatie/image-optimizer Version ^1.8
spatie/laravel-package-tools Version ^1.18
spatie/temporary-directory Version ^2.3
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 board3r/laravel-responsive-image contains the following files

Loading the files please wait ....