yiirocks/svg-inline
Composer 安装命令:
composer require yiirocks/svg-inline
包简介
Inline SVG Images for Yii
README 文档
README
inline
/ˈɪnlʌɪn/
adjectiveincluded as part of the main text on a page, rather than in a separate section
This extension provides simple functions for Yii framework 3.0 applications to add SVG Images inline.
Installation
The package could be installed via composer:
composer require yiirocks/svg-inline
It can be extended with Bootstrap Icons and/or Font Awesome Icons:
composer require yiirocks/svg-inline-bootstrap composer require yiirocks/svg-inline-fontawesome
Usage
The default configuration will enable $svg in any view.
echo $svg->file('@assets/image.svg');
Available options can be found in the documentation.
Unit testing
The package is tested with Psalm and PHPUnit. To run tests:
composer psalm composer phpunit
统计信息
- 总下载量: 960
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-24