承接 2amigos/yii2-semantic-ui 相关项目开发

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

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

2amigos/yii2-semantic-ui

最新稳定版本:0.1.1

Composer 安装命令:

composer require 2amigos/yii2-semantic-ui

包简介

Semantic UI Extension library for Yii2

README 文档

README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

This is the Semantic UI extension for Yii2. It encapsulates Semantic UI components and plugins in terms of Yii widgets and helper classes, easing the usage of Semantic UI components/plugins into Yii applications.

Install

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist "2amigos/yii2-semantic-ui": "*"

or add

"2amigos/yii2-semantic-ui": "*"

to the require section of your composer.json file.

Usage

We are in the process of building a site for this extensions in the meantime, for example, making use of the Dropdown module widget with a search-in menu feature is as follows:

echo Dropdown::widget([
    'encodeText' => false,
    'text' => '<i class="filter icon"></i><span class="text">Filter posts</span>',
    'icon' => false,
    'displaySearchInput' => true,
    'encodeItemLabels' => false,
    'items' => [
        '<div class="header"><i class="tags icon"></i>Tag Label</div>',
        ['label' => '<div class="ui red empty circular label"></div>Important'],
        ['label' => '<div class="ui blue empty circular label"></div>Announcement']
    ],
    'options' => [
        'class' => 'floating labeled search icon button'
    ],
]
);

Testing

To test the extension, is better to clone this repository on your computer. After, go to the extensions folder and do the following (assuming you have composer installed on your computer:

$ composer install --no-interaction --prefer-source --dev

Once all required libraries are installed then do:

$ phpunit

You can also run tests for specific groups only:

$ phpunit --group=helpers,modules

You can get a list of available groups via phpunit --list-groups.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The BSD License (BSD). Please see License File for more information.

2amigOS!
web development has never been so fun
www.2amigos.us

统计信息

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

GitHub 信息

  • Stars: 26
  • Watchers: 29
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-02-13