PHPackages                             dahromy/glide-symfony - 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. dahromy/glide-symfony

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

dahromy/glide-symfony
=====================

Symfony bundle for Glide image manipulation library

1.0.1(1y ago)249[1 issues](https://github.com/dahromy/glide-symfony/issues)MITPHPPHP &gt;=7.4

Since Jul 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dahromy/glide-symfony)[ Packagist](https://packagist.org/packages/dahromy/glide-symfony)[ RSS](/packages/dahromy-glide-symfony/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

DahRomyGlideBundle
==================

[](#dahromyglidebundle)

DahRomyGlideBundle is a Symfony bundle that integrates the [Glide](https://glide.thephpleague.com/) image manipulation library into your Symfony application. It provides an easy way to manipulate and serve images on-the-fly.

For more information about Glide and its capabilities, please refer to the [official Glide documentation](https://glide.thephpleague.com/).

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

[](#requirements)

- PHP 7.4 or higher
- Symfony 5.0 or higher
- GD Library or Imagick PHP extension

Installation
------------

[](#installation)

You can install the bundle using Composer:

```
composer require dahromy/glide-symfony
```

Configuration
-------------

[](#configuration)

After installing the bundle, you need to configure it in your `config/packages/glide.yaml` file. Here's an example configuration with default values:

```
glide:
    source: '%kernel.project_dir%/public/images'
    cache: '%kernel.project_dir%/public/cache'
    driver: gd # Options: gd, imagick
    defaults:
        q: 90
        fm: 'auto'
    presets:
        small:
            w: 200
            h: 200
            fit: crop
        medium:
            w: 600
            h: 400
            fit: crop
```

Usage
-----

[](#usage)

### In Twig Templates

[](#in-twig-templates)

You can use the `glide_asset` Twig function or the `glide` filter to generate URLs for your images:

1. Using the `glide_asset` function:

```

```

Or use a preset:

```

```

2. Using the `glide` filter:

```

```

With a preset:

```

```

### In Controllers

[](#in-controllers)

You can use the `GlideService` in your controllers to generate image URLs or get image responses:

```
use DahRomy\Glide\Service\GlideService;

class MyController extends AbstractController
{
    public function myAction(GlideService $glideService)
    {
        $imageUrl = $glideService->getImageUrl('path/to/image.jpg', ['w' => 300, 'h' => 200]);

        // Or get the image response directly
        $response = $glideService->getImageResponse('path/to/image.jpg', ['w' => 300, 'h' => 200]);

        // ...
    }
}
```

Features
--------

[](#features)

- On-the-fly image manipulation
- Preset configurations for common image sizes
- Secure image URLs with signing
- Easy integration with Twig templates and controllers

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

License
-------

[](#license)

This bundle is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance24

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

2

Last Release

661d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f42579645573d5ad37b75fa31f391486a0530be1fef3e031fc0429abf429b4ef?d=identicon)[dahromy](/maintainers/dahromy)

---

Top Contributors

[![dahromy](https://avatars.githubusercontent.com/u/50836890?v=4)](https://github.com/dahromy "dahromy (63 commits)")

### Embed Badge

![Health badge](/badges/dahromy-glide-symfony/health.svg)

```
[![Health](https://phpackages.com/badges/dahromy-glide-symfony/health.svg)](https://phpackages.com/packages/dahromy-glide-symfony)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[pumukit/pumukit

Media Portal

5714.0k36](/packages/pumukit-pumukit)[mezcalito/imgproxy-bundle

115.7k2](/packages/mezcalito-imgproxy-bundle)

PHPackages © 2026

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