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

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 = [],