2017 © Pedro Peláez
 

library zf-octicons-view-helper

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

image

161/zf-octicons-view-helper

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

  • Wednesday, August 30, 2017
  • by basselin
  • Repository
  • 2 Watchers
  • 0 Stars
  • 24 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 4 % Grown

The README.md

Use Octicons with Zend\View

Build Status Latest Version License, (*1)

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., (*2)

Running Unit Tests

$ composer test

The Versions

30/08 2017

dev-master

9999999-dev https://github.com/161io/zf-octicons-view-helper

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

  Sources   Download

MIT

The Requires

 

The Development Requires

zf github svg octicons

30/08 2017

0.1.2

0.1.2.0 https://github.com/161io/zf-octicons-view-helper

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

  Sources   Download

MIT

The Requires

 

The Development Requires

zf github svg octicons

18/08 2017

0.1.1

0.1.1.0 https://github.com/161io/zf-octicons-view-helper

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

  Sources   Download

MIT

The Requires

 

The Development Requires

zf github svg octicons

18/08 2017

0.1.0

0.1.0.0 https://github.com/161io/zf-octicons-view-helper

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

  Sources   Download

MIT

The Requires

 

The Development Requires

zf github svg octicons