Download the PHP package daikazu/laravel-glider without Composer

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

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Laravel Glider

Laravel Glider is a powerful Laravel package that provides on-the-fly image manipulation using League/Glide. It offers elegant Blade components for generating responsive images with automatic srcset generation, URL signing for security, and seamless integration with Laravel's filesystem and caching layers.

Features

Installation

You can install the package via composer:

The package will automatically register its service provider.

Configuration

Publish the configuration file:

This will create a config/glider.php file. See file for more details.

Views (Optional)

You can publish and customize the Blade component views:

Usage

Basic Usage

Laravel Glider provides several ways to generate manipulated image URLs:

Using the Facade

Using Blade Components

The package provides convenient Blade components for generating image tags:

Image Manipulation Parameters

Laravel Glider supports all League/Glide manipulation parameters. Common parameters include:

Size and Cropping

Quality and Format

Effects and Filters

Using Presets

Define common image sizes in your configuration and reference them:

Responsive Images

The Blade components automatically calculate appropriate srcset values:

This generates multiple image sizes for different screen densities and viewport sizes.

Responsive Background Images

Laravel Glider provides a powerful <x-glide-bg> component for responsive background images that automatically generates CSS media queries:

Background Component Attributes

Using Presets for Backgrounds

Background presets are defined in your config file:

Security

URLs are automatically signed to prevent unauthorized manipulation. The signing key is derived from your application key, ensuring secure image processing.

Artisan Commands

Laravel Glider includes helpful Artisan commands:

Clear Glide Cache

Clear all cached processed images:

Convert Image Tags

Convert existing HTML img tags to use Glide components:

API Reference

Blade Component Attributes

Image Components

The <x-glide-img> and <x-glide-bg-responsive> components accept all standard HTML img attributes plus Glide parameters prefixed with glide-:

Background Component

The <x-glide-bg> component provides responsive background image functionality:

Background-Specific Attributes

Glide Parameters (prefix with glide-)

for further details see League/Glide documentation

Configuration Options

All configuration options available in config/glider.php:

Requirements

Testing

Run the test suite:

Run tests with coverage:

Run static analysis:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-glider with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^11.0||^12.0
league/glide Version ^3.0
ntzrbtr/flysystem-http Version ^1.1
spatie/laravel-package-tools Version ^1.16
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 daikazu/laravel-glider contains the following files

Loading the files please wait ....