ispa / icons
Icons
dev-master / 0.1.x-dev
2019-03-27 10:41 UTC
Requires
- php: >=7.1
Requires (Dev)
- latte/latte: ~2.4.4 || ~2.5.0
- ninjify/nunjuck: ^0.2.1
- ninjify/qa: ^0.9.0
- phpstan/phpstan-deprecation-rules: ^0.11.0
- phpstan/phpstan-nette: ^0.11.0
- phpstan/phpstan-shim: ^0.11.2
- phpstan/phpstan-strict-rules: ^0.11.0
Conflicts
- latte/latte: <2.4.4
This package is auto-updated.
Last update: 2024-10-27 22:55:59 UTC
README
Take a look at icons
folder for all of them
Standalone usage
use Ispa\Icons\Icons; $baseuri = 'https://raw.githack.com/ispalliance/icons/master/icons'; $icons = new Icons(); $url = $baseuri . '/128/' . $icons->getFilename('ČT 1 HD');
Usage with latte
services: ispa.icons.filter: Ispa\Icons\Bridges\Latte\IconUrlFilter() latte.latteFactory: setup: - addFilter(icon, @Ispa\Icons\Bridges\Latte\IconUrlFilter)
{var icon = 'ČT 1 HD'} <img src="{$icon|icon:128}" alt="{$icon}"> <img src="https://raw.githack.com/ispalliance/icons/master/icons/128/ct1-hd.png" alt="ČT 1 HD">