2017 © Pedro Peláez
 

yii2-extension yii2-socicon

Asset Bundle for Yii2 with Socicon

image

rmrevin/yii2-socicon

Asset Bundle for Yii2 with Socicon

  • Friday, May 20, 2016
  • by rmrevin
  • Repository
  • 1 Watchers
  • 5 Stars
  • 234 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Yii 2 Socicon Asset Bundle

License Latest Stable Version Latest Unstable Version Total Downloads, (*1)

Code Status

Scrutinizer Code Quality Code Coverage Travis CI Build Status Dependency Status, (*2)

Installation

Add in composer.json:, (*3)

{
    "require": {
        "rmrevin/yii2-socicon": "~1.1"
    }
}

Usage

In view, (*4)

<?
// ...

rmrevin\yii\socicon\AssetBundle::register($this);

or as dependency in your asset bundle, (*5)

<?
// ...

class AppAsset extends AssetBundle
{
    // ...

    public $depends = [
        // ...
        '\rmrevin\yii\socicon\AssetBundle'
    ];
}

Helper


use rmrevin\yii\socicon\SI; echo SI::icon('twitter'); // <i class="socicon socicon-twitter"></i> echo SI::icon('twitter', ['class' => 'big', 'data-role' => 'social-button']); // <i class="big socicon socicon-twitter" data-role="social-button"></i> echo Html::submitButton(Yii::t('app', '{check} Tweet', ['check' => SI::icon('twitter')])); // <button type="submit"><i class="socicon socicon-twitter"></i> Tweet</button> // autocomplete in IDE echo SI::icon(SI::_TWITTER); echo SI::icon(SI::_DISQUS);

Another prefix

SI::$cssPrefix = 'si';

echo SI::icon('twitter');
// <i class="si si-twitter"></i>

The Versions

20/05 2016

dev-master

9999999-dev

Asset Bundle for Yii2 with Socicon

  Sources   Download

MIT

The Requires

 

social bundle yii asset font icons socicon

20/05 2016

1.1.0

1.1.0.0

Asset Bundle for Yii2 with Socicon

  Sources   Download

MIT

The Requires

 

social bundle yii asset font icons socicon

03/05 2015

1.0.0

1.0.0.0

Asset Bundle for Yii2 with Socicon

  Sources   Download

MIT

The Requires

 

social bundle yii asset font icons socicon