Download the PHP package shaggyrec/php-svg-icons without Composer
On this page you can find all versions of the php package shaggyrec/php-svg-icons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-svg-icons
PHP SVG ICONS
The library for providing svg icons to the php
Install
composer require shaggyrec/php-svg-icons
Usage
Get one icon:
echo Shaggyrec\SvgIcons\icon('twitter');
Get all icons:
echo Shaggyrec\SvgIcons\icons();
Find icons by name:
echo Shaggyrec\SvgIcons\icons('twi');
Customize icons
echo Shaggyrec\SvgIcons\icon('twitter', '#fff', 24, 24);
echo Shaggyrec\SvgIcons\icons('twi', '#fff', 24, 24);
Documentation
icon
- params
- [0] name (string, mandatory) - icon name
- [1] color (string, optional) - set color
- [2] width (int, optional) - set width
- [3] height (int, optional) - set height
- returns the svg icon as string
icons
- params
- [0] searchString (string, optional) - search string for icon name
- [1] color (string, optional) - set color
- [2] width (int, optional) - set width
- [3] height (int, optional) - set height
- returns the array of
['name' => 'icon-name', 'value' => '<svg.....']
You can see all available icons in the ./icons
direcory
All versions of php-svg-icons with dependencies
PHP Build Version
Package Version
No informations.
The package shaggyrec/php-svg-icons contains the following files
Loading the files please wait ....