tiknil/svg-sprite
最新稳定版本:1.1.0
Composer 安装命令:
composer require tiknil/svg-sprite
包简介
Laravel package to create a sprite from a folder with svg
关键字:
README 文档
README
Svg sprite is a tool for creating an svg sprite from a folder of icons.
Learn more about SVG Sprites and how to use them
Installation
Global installation
composer global require tiknil/svg-sprite
Make sure that the composer binaries directory is in your $PATH
You can update svg-sprite to the latest version by running
composer global update tiknil/svg-sprite
You can now use the svg-sprite command anywhere
PHP project local installation
composer require tiknil/svg-sprite
You can now invoke the command using vendor/bin/svg-sprite
Usage
svg-sprite <folder> <output>
For example, in a laravel project:
svg-sprite public/icons resources/views/sprite.blade.php
By default, the files names will be used as ID for the icon. You can add a prefix with the -p option:
svg-sprite public/icons resources/views/sprite.blade.php -p icons-
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-01