endelwar / twig-extensions
Some helpful Twig extensions
Installs: 1 700
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^5.6|^7
- ext-mbstring: *
- gregwar/image: ^2.0
- twig/twig: ^1.35|^2.5
Requires (Dev)
- symfony/phpunit-bridge: ^3.4|^4.0|^4.1
This package is auto-updated.
Last update: 2024-10-29 04:41:50 UTC
README
Some helpful Twig extensions
ColorLuminance
Modify luminance of hex RGB value
{{ ColorLuminance('#BADA55', 0.1) }}
Image
A wrapper for Gregwar/Image
<img src="{{ image('/img/big/image.jpg').resize(42, 42) }}"> <img src="{{ image('/img/big/image.jpg').sepia() }}">