ashtokalo/yii2-adminlte

模块,用于扩展 yii2 应用程序以支持 AdminLTE 界面。

dev-master 2022-06-27 18:54 UTC

This package is auto-updated.

Last update: 2024-08-27 23:44:32 UTC


README

AdminLTE for Yii2 是一个 Yii2 框架的模块,用于获得基于 AdminLTE 完全响应式管理模板和 Bootstrap 4.6 框架以及 JS/jQuery 插件的简单管理界面。

警告! 此模块正在开发中!任何内容都可能被更改或甚至删除!除了代码中的注释外,没有其他文档!

快速入门

有多种安装模块的方式,但首选从仓库中通过 composer 安装。

composer require ashtokalo\yii2-adminlte

假设您已经有一个 Yii2 应用程序,您需要做的更改仅限以下几步:

  1. 将模块添加到 Web 应用的配置中
'modules' => [
    // here the other modules
    'adminlte' => [
        'class' => \ashtokalo\yii2\adminlte\Module::class,
    ],
],
  1. 将模块添加到 Web 应用的引导中
'bootstrap' => [
    // here the other modules
    'adminlte',
],
  1. 将侧边栏和导航栏配置为 Web 应用程序组件
'components' => [
    // here the other components
    'sidebar' => [
        'class' => \ashtokalo\yii2\adminlte\widgets\Sidebar::class,
        'items' => [
            // here the items of your sidebar
        ],
    ],
    'navbar' => [
        'class' => \ashtokalo\yii2\adminlte\widgets\Navbar::class,
        'items' => [
            // here the items of your navbar
        ],
    ],
],

贡献

欢迎贡献,贡献将得到充分认可。

您可以获取代码并运行测试应用程序

git clone https://github.com/ashtokalo/yii2-adminlte.git
cd yii2-adminlte
composer update
cd test/app
./yii serve &
xdg-open https://:8080

仅接受通过 Github 的拉取请求进行的贡献

  • PSR-2 编码标准

  • 记录任何行为变更 - 确保代码中的 readme.txt 和任何其他相关文档都保持最新。

  • 创建功能分支 - 不要要求我们从您的 master 分支拉取。

  • 每个功能一个拉取请求 - 如果您想做多项工作,请发送多个拉取请求。

  • 发送连贯的历史记录 - 确保您的拉取请求中的每个单独提交都有意义。如果您在开发过程中必须进行多个中间提交,请在提交之前将其 压缩

许可证

AdminLTE for Yii2 是由 Alexey Shtokalo 开发的开源项目,许可协议为 MIT

鸣谢