承接 dalencar/yii2-webfontkit 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dalencar/yii2-webfontkit

Composer 安装命令:

composer require dalencar/yii2-webfontkit

包简介

Set of icon frameworks for use in Yii Framework 2.0

README 文档

README

This extension offers an easy method to setup various webfont frameworks to work with Yii Framework 2.0.

  1. Open Sans
  2. Roboto

Installation

The preferred way to install this extension is through composer.

Note: Check the composer.json for this extension's requirements and dependencies.

Either run

$ php composer.phar require dalencar/yii2-webfontkit "dev-master"

or add

"dalencar/yii2-webfontkit": "dev-master"

to the require section of your composer.json file.

Usage

Global Setup

In case you wish to setup one or more Webfont framework globally, set the parameter webfontkit-framework in the params array of your Yii Configuration File.

'params' => [
  'webfontkit-framework' => [
    'os',  // Open Sans Webfont framework
  ],
]

To initialize the globally setup framework, you can proceed in one of two ways:

  1. In your view, call this code in your view or view layout file:
use dalencar\webfontkit\WebFontKit;
WebFontKit::register($this);
  1. Or in your asset bundle, adding the dalencar\webfontkit\WebFontKit class as depends
public $depends [
  'dalencar\webfontkit\WebFontKit',
],

Per View Setup

You can also call each icon-framework individually in your view or view layout like below. Map any icon framework within each view as in the example below.

use dalencar\webfontkit\WebFontKit;
WebFontKit::register($this, WebFontKit::OS); // Register the Open Sans webfont framework

License

yii2-webfontkit is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD
  • 更新时间: 2015-04-26