<!-- 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;
}
$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=""
]);
$ composer require 161/zf-octicons-view-helper
- Add module
Io161\Octicons
in yourconfig/module.config.php
- Add style
octicons.css
$ composer octicons-update
Yarn is required or replace Yarn by NPM in composer.json file.
$ composer test