Download the PHP package unrulynatives/laravel-glider without Composer

On this page you can find all versions of the php package unrulynatives/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 Total Downloads

Laravel Glider

On-the-fly image manipulation for Laravel using League/Glide. Transform, optimize, and serve images with elegant Blade components.

Features

Installation

Publish configuration:

The cache directory is created automatically with .gitignore added.

Quick Start

Basic Image

Responsive Image

Background Image

Responsive Background

Using the Facade

Usage Guide

Image Manipulation

All Glide parameters are supported with the glide- prefix:

Sizing

Quality & Format

Effects

Focal Points

Control image positioning within its container using CSS:

Available positions: center, top, bottom, left, right, top-left, top-right, bottom-left, bottom-right

How it works:

Presets

Define reusable configurations in config/laravel-glider.php:

Use in components:

Background Images

Create responsive backgrounds with automatic media queries:

Custom breakpoints:

Background presets in config:

Remote Images

Process images from external URLs automatically:

Remote images are fetched, processed, and cached locally. Default config values apply automatically.

Components Reference

<x-glide-img>

Basic image with transformations.

Attributes:

<x-glide-img-responsive>

Responsive image with automatic srcset generation.

Attributes:

<x-glide-bg>

Background image container (non-responsive).

Attributes:

<x-glide-bg-responsive>

Responsive background with media queries.

Attributes:

Glide Parameters

Common parameters (use glide- prefix in components):

Parameter Values Description
w pixels Width
h pixels Height
fit crop, contain, fill, max Resize mode
fit crop-{position} Crop with position (e.g., crop-top, crop-center)
fit crop-{x}-{y}[-{zoom}] Crop with focal point/zoom (e.g., crop-25-75-2)
q 1-100 Quality
fm jpg, png, webp, avif Format
blur 0-100 Blur amount
bri -100 to 100 Brightness
con -100 to 100 Contrast
filt greyscale, sepia Filter

See full Glide documentation for all parameters.

Artisan Commands

Clear image cache:

Convert HTML img tags to components (WIP):

Configuration

Key options in config/laravel-glider.php:

Requirements

Security

Laravel Glider implements multiple security layers to protect your application from common attacks. These features work together to ensure safe image processing.

URL Signing

Status: Enabled by default (GLIDE_SECURE=true)

URL signing prevents unauthorized image manipulation and protects against denial-of-service attacks. When enabled, all image URLs are cryptographically signed using your application key.

Important: URL signing should NEVER be disabled in production environments. Unsigned URLs allow attackers to:

The signing mechanism uses Laravel's APP_KEY by default. Ensure your application key is:

Path Traversal Protection

Laravel Glider validates all file paths to prevent directory traversal attacks. The package automatically:

Example of blocked attacks:

These protections are automatic and require no configuration.

XSS Protection

Background image components sanitize CSS values to prevent cross-site scripting attacks via CSS injection:

The package validates and sanitizes:

SSRF Protection

When processing remote images via URLs, Laravel Glider protects against Server-Side Request Forgery (SSRF) attacks:

Protections implemented:

These protections prevent attackers from:

All SSRF protections are automatic and require no configuration.

Security Best Practices

Follow these recommendations to maintain secure image processing:

  1. Keep URL signing enabled

  2. Use a strong application key

  3. Validate source paths

  4. Limit maximum image dimensions

  5. Keep the package updated

  6. Use HTTPS in production

    • Protects signed URLs from interception
    • Prevents man-in-the-middle attacks on image requests
  7. Configure appropriate cache permissions

Reporting Security Issues

If you discover a security vulnerability, please email [[email protected]] or use the GitHub Security Advisory feature. Do not create public issues for security vulnerabilities.

Testing

Resources

Credits

License

MIT License. See LICENSE.md for details.


All versions of laravel-glider with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^11.0||^12.0||^13.0
league/glide Version ^3.0
ntzrbtr/flysystem-http Version ^2.0
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 unrulynatives/laravel-glider contains the following files

Loading the files please wait ...