Skip to content

Maslosoft/Sprite

Repository files navigation

Maslosoft Sprite

Icon sprite generator

Install with composer:

composer require "maslosoft/sprite:*"

When using with Yii can be configured like that:

	 // application components
	 'components' => [
	 ...
		  'sprite' => [
				'class' => Maslosoft\Sprite\Generator::class,
				'iconCssClass' => 'icon',
				'paths' => [
					 realpath(dirname(__FILE__) . '/../../www/css/icons')
				]
		  ],
		...