PHPackages                             ampedweb/laravel-glide-in-a-box - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. ampedweb/laravel-glide-in-a-box

ActiveLibrary[Image &amp; Media](/categories/media)

ampedweb/laravel-glide-in-a-box
===============================

Out of the box solution for Glide PHP for Laravel

v1.0.0(1y ago)39582MITPHPPHP &gt;=8.1

Since Feb 9Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ampedweb/laravel-glide-in-a-box)[ Packagist](https://packagist.org/packages/ampedweb/laravel-glide-in-a-box)[ RSS](/packages/ampedweb-laravel-glide-in-a-box/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (7)Versions (16)Used By (0)

Laravel Glide In a Box
======================

[](#laravel-glide-in-a-box)

[![Latest Stable Version](https://camo.githubusercontent.com/ac87d96bd8d1adfb683cb345bd606e2768f743663fa5f67d8239c12ff18e11d4/68747470733a2f2f706f7365722e707567782e6f72672f616d7065647765622f6c61726176656c2d676c6964652d696e2d612d626f782f76)](//packagist.org/packages/ampedweb/laravel-glide-in-a-box) [![License](https://camo.githubusercontent.com/69b5d8bc63f92db538110cf69e97bebd5572724327da2d3fac842d5b651eb58b/68747470733a2f2f706f7365722e707567782e6f72672f616d7065647765622f6c61726176656c2d676c6964652d696e2d612d626f782f6c6963656e7365)](//packagist.org/packages/ampedweb/laravel-glide-in-a-box)

Out of the box solution for [Glide PHP](https://glide.thephpleague.com/) for Laravel providing a fluent interface for the Glide API.

Full Docs &amp; Examples are here:

If you would like to use JUST the Fluent URL Builder in your project you can find that here: . Docs are currently a work in progress there...!

Requirements
------------

[](#requirements)

- PHP &gt;= 7.3 with the following extensions:
    - Exif
    - GD **or** ImageMagick
- league/glide-laravel": "^1.6",

Features
--------

[](#features)

- Automatically signed urls when using the `glide_url()` helper function.
- A fluent interface for all glide image api see here: [https://glide.thephpleague.com](https://glide.thephpleague.com/1.0/api/quick-reference/)

Installation
============

[](#installation)

```
composer require ampedweb/laravel-glide-in-a-box

```

Publish the config file:

```
php artisan vendor:publish --tag=glideinabox
```

Basic Usage
===========

[](#basic-usage)

The base url "out of the box" for all glide image url requests is "/img/". You can adjust this in the glideinabox.php config file once you have published it.

Using the `glide_url()` helper function should make building your image urls simple.

An example using a preset as a base and then making a few alterations using the fluent methods:

```
glide_url($pathToYourImageFile)->preset('medium')->filter('sepia')->url();

// You can also cast the FluentUrlBuilder to a string:

$url = (string)glide_url($pathToYourImageFile)->preset('medium')->filter('sepia');

// Or print it:

print glide_url($pathToYourImageFile)->preset('medium')->filter('sepia');

// Or use it directly in your blade templates:

{{ glide_url($pathToYourImageFile)->preset('medium')->filter('sepia') }}
```

There are also predefined constants if you prefer using those rather than strings, e.g:

```
use AmpedWeb\GlideUrl\Interfaces\Filter;

glide_url($pathToYourImageFile)->preset('medium')->filter(Filter::SEPIA)->url();
```

You can also build a completely custom image with no preset. Below is a 200x100 px cropped webp image at 50% quality:

```
use AmpedWeb\GlideUrl\Interfaces\Fit;

glide_url($pathToYourImageFile)->size(200,100)->fit(Fit::CROP)->webp(50)->url();
```

Always remember to call the `->url()` method when you are done configuring your image.

Extension
=========

[](#extension)

If you would like to use your own image controller but still use the base functionality from the package then you will need to extend:

```
AmpedWeb\GlideInABox\Controller\GlideImageController;
```

Running Tests:
--------------

[](#running-tests)

```
php vendor/bin/phpunit
```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance44

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 51.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~115 days

Recently: every ~177 days

Total

14

Last Release

460d ago

Major Versions

v0.7.0 → v1.0.02025-03-23

PHP version history (3 changes)v0.1PHP ^7.3

v0.2.0PHP ^7.3|~8

v1.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f5c9f4e29c7fe22627c108733402daff5181384f6f62fcb9ab966afdd1cf342?d=identicon)[ampedweb](/maintainers/ampedweb)

---

Top Contributors

[![ampedweb](https://avatars.githubusercontent.com/u/22029493?v=4)](https://github.com/ampedweb "ampedweb (135 commits)")[![mattgorle](https://avatars.githubusercontent.com/u/3032672?v=4)](https://github.com/mattgorle "mattgorle (124 commits)")[![TheCoderRaman](https://avatars.githubusercontent.com/u/50484280?v=4)](https://github.com/TheCoderRaman "TheCoderRaman (1 commits)")

---

Tags

glidephpimage-processinglaravelphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ampedweb-laravel-glide-in-a-box/health.svg)

```
[![Health](https://phpackages.com/badges/ampedweb-laravel-glide-in-a-box/health.svg)](https://phpackages.com/packages/ampedweb-laravel-glide-in-a-box)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
