alexander-suter/yii2-tag-cloud
最新稳定版本:2.0.2
Composer 安装命令:
composer require alexander-suter/yii2-tag-cloud
包简介
Tagcloud for Yii2
关键字:
README 文档
README
Yii2 extension. Tag Cloud.
Installation
The preferred way to install this extension is through composer.
To install, either run
$ php composer.phar require alexander-suter/yii2-tag-cloud "*"
or add
"alexander-suter/yii2-tag-cloud": "*"
to the require section of your composer.json file.
Usage
echo TagCloud::widget([
'beginColor' => '00089A',
'endColor' => 'A3AEFF',
'minFontSize' => 8,
'maxFontSize' => 15,
'displayWeight' => false,
'tags' => [
"MVC" => ['weight' => 2],
"PHP" => ['weight' => 9, 'url' => 'http://php.net'],
"MySQL" => ['weight' => 8, 'url' => 'http://mysql.com'],
"jQuery" => ['weight' => 6, 'url' => 'http://jquery.com'],
"SQL" => ['weight' => 9],
"C#" => ['weight' => 2)],
],
'options' => ['style' => 'word-wrap: break-word;']
]);
统计信息
- 总下载量: 4.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-05-14