nelson-cms / svg-filter
There is no license information available for the latest version (1.0.1) of this package.
Simple inline SVG filter for Nette/Latte.
1.0.1
2025-03-25 12:49 UTC
Requires
- php: ^8.3
- ext-dom: *
- latte/latte: ^3.0
- nette/caching: ^3.2
- nette/di: ^3.2
- nette/utils: ^4.0
Requires (Dev)
- jetbrains/phpstorm-attributes: ^1.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^2.0.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-nette: ^2.0.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^12.0.0
- roave/security-advisories: dev-master
- spaze/phpstan-disallowed-calls: ^4.0
This package is auto-updated.
Last update: 2025-06-25 13:20:09 UTC
README
A simple SVG filter for Nette/Latte with cache support.
Installation
composer require nelson-cms/svg-filter
Setup
extensions: svgFilter: NelsonCms\SvgFilter\DI\SvgFilterExtension svgFilter: assetsPath: %wwwDir%/
Usage
Example:
{='assets/front/svg/logo.svg'|svg: 100, 200, 'currentColor'}
Parameters:
float $width = null, float $height = null, string $fill = null, string $class = null, string $title = null, array $attributes = [],