Download the PHP package dahromy/glide-symfony without Composer
On this page you can find all versions of the php package dahromy/glide-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dahromy/glide-symfony
More information about dahromy/glide-symfony
Files in dahromy/glide-symfony
Package glide-symfony
Short Description Symfony bundle for Glide image manipulation library
License MIT
Informations about the package glide-symfony
DahRomyGlideBundle
DahRomyGlideBundle is a Symfony bundle that integrates the Glide 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.
Requirements
- PHP 7.4 or higher
- Symfony 5.0 or higher
- GD Library or Imagick PHP extension
Installation
You can install the bundle using Composer:
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:
Usage
In Twig Templates
You can use the glide_asset
Twig function or the glide
filter to generate URLs for your images:
- Using the
glide_asset
function:
Or use a preset:
- Using the
glide
filter:
With a preset:
In Controllers
You can use the GlideService
in your controllers to generate image URLs or get image responses:
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
Contributions are welcome! Please feel free to submit a Pull Request.
License
This bundle is open-sourced software licensed under the MIT license.
All versions of glide-symfony with dependencies
symfony/framework-bundle Version ^5.0|^6.0|^7.0
league/glide-symfony Version 2.0.1
symfony/twig-bundle Version ^5.0|^6.0|^7.0