2017 © Pedro Peláez
 

yii2-extension yii2-fahelper

fahelper - Font Awesome Html Helper for Yii2

image

jext/yii2-fahelper

fahelper - Font Awesome Html Helper for Yii2

  • Thursday, November 9, 2017
  • by JeanWolf
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 100 % Grown

The README.md

yii2-fahelper

font-awesome html helper for yii2, (*1)

including most usages from http://www.fontawesome.io/ Examples, (*2)

Usage

composer require jext/yii2-fahelper, (*3)

add assets bundle in the view file, (*4)

eg:, (*5)

<?php
use jext\fahelper\FontAwesomeAsset;
use jext\fahelper\JFA;

FontAwesomeAsset::register($this);

$icon = JFA::icon('camera');
//or
$icon = JFA::i('camera')->size('2x')->rotate('90');

echo $icon;
//or
echo $icon->render();

//use stack
echo $icon->stackOn('ban');

//... some other codes

无 composer 安装使用说明, (*6)

由于国内的composer包安装速度很让人着急,这边简单的介绍下怎么在没有composer的环境下使用本库。, (*7)

其实说白了就是直接使用源码。, (*8)

核心源码为 JFA.php 中的 JFA类,直接查看源码 复制到自己项目的某个新文件中, 然后针对自己的项目目录修改命名空间即可。, (*9)

关于font-awesome的前端文件,很多地方都可以下载到也有文档说明,不明白的可以搜索下。, (*10)

如发现问题,欢迎反馈 :), (*11)

The Versions

09/11 2017

dev-master

9999999-dev http://blog.jeen.wang/

fahelper - Font Awesome Html Helper for Yii2

  Sources   Download

MIT

The Requires

 

extension yii2 font-awesome

24/10 2017

0.0.2

0.0.2.0 http://blog.jeen.wang/

fahelper - Font Awesome Html Helper for Yii2

  Sources   Download

MIT

The Requires

 

extension yii2 font-awesome

24/10 2017

0.0.1

0.0.1.0 http://blog.jeen.wang/

fahelper - Font Awesome Html Helper for Yii2

  Sources   Download

MIT

The Requires

 

extension yii2 font-awesome