161/zf-octicons-view-helper

Use Octicons with Zend\View: echo $this->octicon('mark-github')

Maintainers

👁 basselin

Package info

github.com/161io/zf-octicons-view-helper

Language:HTML

pkg:composer/161/zf-octicons-view-helper

Statistics

Installs: 41

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.2 2017-08-30 17:16 UTC

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 80ed7a1618e7c1e88db66ce7976643645c4d7575

githubzfsvgocticons

This package is auto-updated.

Last update: 2026-06-18 08:00:42 UTC


README

👁 Build Status
👁 Latest Version
👁 License

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\Octicons in your config/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