xutl/yii2-fontawesome-asset

This package is abandoned and no longer maintained. The author suggests using the yiilab/yii2-fontawesome-asset package instead.

The fontawesome extension for the Yii framework

Installs: 2 578

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

2.0.3 2017-05-24 08:43 UTC

This package is auto-updated.

Last update: 2022-02-01 13:04:26 UTC


README

安装

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist xutl/yii2-fontawesome-asset

or add

"xutl/yii2-fontawesome-asset": "~2.0.0"

to the require section of your composer.json.

\xutl\fontawesome\Asset::register($this);

Use CDN

'components' => [
    'assetManager' => [
        'bundles' => [
            'xutl\fontawesome\Asset' => [
                'sourcePath' => null, // do not publish the bundle
                'css' => [
                    '//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css',
                ]
            ]
        ]
    ],
],