161/zf-octicons-view-helper
Composer 安装命令:
composer require 161/zf-octicons-view-helper
包简介
Use Octicons with Zend\View: echo $this->octicon('mark-github')
关键字:
README 文档
README
Usage
<!-- view/application/your-page.phtml --> <button class="btn btn-primary"><?= $this->octicon('mark-github') ?> GitHub's icons</button>
/* octicons.css */ .octicon { display: inline-block; vertical-align: text-top; fill: currentColor; }
FAQ
Options
$this->octicon('mark-github', 1); // icon size: 100% $this->octicon('mark-github', 2); // icon size: 200% $this->octicon('mark-github', [ 'ratio' => 1, // icon size: 100% 'class' => 'octicon', // Attribute class="" ]);
Installation
$ composer require 161/zf-octicons-view-helper
- Add module
Io161\Octiconsin yourconfig/module.config.php - Add style
octicons.css
Update Octicons
$ composer octicons-update
Yarn is required or replace Yarn by NPM in composer.json file.
Running Unit Tests
$ composer test
统计信息
- 总下载量: 41
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-18