PHPackages                             161/zf-octicons-view-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. 161/zf-octicons-view-helper

ActiveLibrary[Templating &amp; Views](/categories/templating)

161/zf-octicons-view-helper
===========================

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

0.1.2(8y ago)041MITHTMLPHP ^7.0CI failing

Since Aug 18Pushed 6y ago2 watchersCompare

[ Source](https://github.com/161io/zf-octicons-view-helper)[ Packagist](https://packagist.org/packages/161/zf-octicons-view-helper)[ Docs](https://github.com/161io/zf-octicons-view-helper)[ RSS](/packages/161-zf-octicons-view-helper/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Use Octicons with Zend\\View
============================

[](#use-octicons-with-zendview)

[![Build Status](https://camo.githubusercontent.com/1331dd15ce9378606904a149faab0e1316cf9e944d62ca1effd1914cee4e4940/68747470733a2f2f7472617669732d63692e6f72672f313631696f2f7a662d6f637469636f6e732d766965772d68656c7065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/161io/zf-octicons-view-helper)[![Latest Version](https://camo.githubusercontent.com/64ae0d0fc6d7ce6202e132f99fddb193ebc6b2068605f82c709b39d9cbbf5453/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f3136312f7a662d6f637469636f6e732d766965772d68656c7065722e737667)](https://packagist.org/packages/161/zf-octicons-view-helper)[![License](https://camo.githubusercontent.com/66efd023cf0735acd6dff6d8b9285fc41cab71bdb06892c17831c5df5dc7d079/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f3136312f7a662d6f637469636f6e732d766965772d68656c7065722e737667)](https://packagist.org/packages/161/zf-octicons-view-helper)

Usage
-----

[](#usage)

```

octicon('mark-github') ?> GitHub's icons
```

```
/* octicons.css */
.octicon {
  display: inline-block;
  vertical-align: text-top;
  fill: currentColor;
}
```

FAQ
---

[](#faq)

### Options

[](#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

[](#installation)

```
$ composer require 161/zf-octicons-view-helper
```

- Add module `Io161\Octicons` in your `config/module.config.php`
- Add style `octicons.css`

### Update Octicons

[](#update-octicons)

```
$ composer octicons-update
```

*Yarn is required or replace Yarn by NPM in composer.json file.*

### Running Unit Tests

[](#running-unit-tests)

```
$ composer test
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

3

Last Release

3226d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6b5868b04d99400e72646e6e23d91d8eba87fcc466fdfaed7067562a6580349?d=identicon)[basselin](/maintainers/basselin)

---

Top Contributors

[![basselin](https://avatars.githubusercontent.com/u/890510?v=4)](https://github.com/basselin "basselin (11 commits)")

---

Tags

iconsocticonsocticons-helperzend-frameworkzf3svggithubzfocticons

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/161-zf-octicons-view-helper/health.svg)

```
[![Health](https://phpackages.com/badges/161-zf-octicons-view-helper/health.svg)](https://phpackages.com/packages/161-zf-octicons-view-helper)
```

###  Alternatives

[blade-ui-kit/blade-icons

A package to easily make use of icons in your Laravel Blade views.

2.5k39.5M387](/packages/blade-ui-kit-blade-icons)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

566.8M120](/packages/symfony-ux-icons)[log1x/blade-svg-sage

Composer package to add support for Blade SVG by Adam Wathan to Roots Sage.

7478.2k](/packages/log1x-blade-svg-sage)[stevie-mayhew/silverstripe-svg

Basic SVG support for SilverStripe

22355.3k4](/packages/stevie-mayhew-silverstripe-svg)[kokspflanze/zfc-twig

Laminas/Zend Framework Module that provides a Twig rendering strategy and extensions to render actions or trigger events from your templates

14305.3k4](/packages/kokspflanze-zfc-twig)[oxcom/zend-twig

ZendTwig is a module that integrates the Twig template engine with Zend Framework 3.

18112.4k](/packages/oxcom-zend-twig)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
