Download the PHP package kaikaige/yii2-layui without Composer

On this page you can find all versions of the php package kaikaige/yii2-layui. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-layui

LayUi

Layui admin

Installation

The preferred way to install this extension is through composer.

Either run

to the require section of your composer.json file.

Usage

项目初始化化、数据库配置、url美化查看官方文档即可

Step 1 编辑配置文件

backend/config/main.php 增加两个模块 ms and mdm,最好不要修改模块名,如需请参考配置篇

  • ms 模块后台管理界面入口
  • mdm 第三方rbac权限管理插件,依赖会同步安装

组件修改

  • 使用db authManager基于数据库的权限管理
  • log组件使用插件自己封装的插件

增加mdm access 来过滤访问请求,不需要鉴权的URL可以修改该配置

Step 2 初始化数据库

使用migrate工具初始化数据库,会生成对应的数据表

Step 3 gii配置

编辑配置文件 config/main-local.php

关于配置

整个配置都基于yii2自带的params组件来管理的,配置字段名layui.admin.configs是插件预定的不可以修改,例如修改管理后台页面Title,编辑config/params.php

配置的加载原理是 kaikaige\layui\components\Configs通过初试加载params对应layui.admin.configs的配置,完整的配置项就是Configs类下的所有公有属性,建议如无特殊需求目前最有意义的修改就是titleuploadConfig


All versions of yii2-layui with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ~2.0.0
mdmsoft/yii2-admin Version ~2.0
kaikaige/yii2-tinymce Version ~1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kaikaige/yii2-layui contains the following files

Loading the files please wait ....