https://github.com/ceefee/yii2-layui
Yii 2 Layui Extension
https://github.com/ceefee/yii2-layui
layui yii2
Last synced: 3 months ago
JSON representation
Yii 2 Layui Extension
- Host: GitHub
- URL: https://github.com/ceefee/yii2-layui
- Owner: CeeFee
- License: bsd-3-clause
- Created: 2020-05-06T09:03:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T01:28:47.000Z (almost 6 years ago)
- Last Synced: 2024-11-15T23:29:54.246Z (over 1 year ago)
- Topics: layui, yii2
- Language: PHP
- Homepage:
- Size: 623 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Layui Extension for Yii 2
This is the Layui extension for [Yii framework 2.0](http://www.yiiframework.com). It encapsulates [Layui](https://www.layui.com/) components
and plugins in terms of Yii widgets, and thus makes using Layui components/plugins
in Yii applications extremely easy.
For license information check the [LICENSE](LICENSE.md)-file.
[](https://packagist.org/packages/ceefee/yii2-layui)
[](https://packagist.org/packages/ceefee/yii2-layui)
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist ceefee/yii2-layui
```
or add
```
"ceefee/yii2-layui": "~1.0.0"
```
to the require section of your `composer.json` file.
Usage
----
For example, the following
single line of code in a view file would render a Layui Progress plugin:
```php
= ceefee\layui\Progress::widget(['percent' => 60, 'label' => 'test']) ?>
```