nelson-cms / svg-filter
Simple inline SVG filter for Nette/Latte.
Installs: 98
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nelson-cms/svg-filter
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-09-25 13:55:36 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 = [],