simonvomeyser / laravel-glide-images
This is my package laravel-glide-images
Fund package maintenance!
Simon vom Eyser
Requires
- php: ^8.1
- illuminate/contracts: ^10.0
- league/glide-laravel: ^1.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.0.1
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^10.5
README
⚠️ This is a work-in-progress, the api might change considerably before the first major release.
This package provides a simple glide(url, options)
php helper function to generate image urls with Glide on the fly in your templates.
It's aimed for easy of use and pretty opinionated in the current development stage.
<!-- will generate an image 500px in width --> <img src="{{ glide('images/image.jpg', 500) }}"> <!-- will generate an 500x500 image in grayscale --> <img src="{{ glide('images/image.jpg', ['w' => 500, 'h'=> 500 'filt' => 'grayscale']) }}">
Installation
You can install the package via composer:
composer require simonvomeyser/laravel-glide-images
You can publish the config file with:
php artisan vendor:publish --tag="laravel-glide-images-config"
Usage
wip
Testing
wip
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.