cszchen/alte
最新稳定版本:v2.0.2
Composer 安装命令:
composer require cszchen/alte
包简介
Widgets for AdminLTE theme
README 文档
README
The Bootstrap template AdminLTE widgets for yii2 framework. It make it easy to build a bootstrap admin panel.
Install
composer require "cszchen/alte": ">=2.0.0"
How to Use
layout sample file: @vendor/cszchen/alte/views/main-layout.php
example:
controllers/SiteController.php
class SiteController extends \yii\web\Controller { public $layout = '@vendor/cszchen/alte/veiws/main-layout.php'; public function actionIndex() { return $this->render('index'); } }
views/site/index.php
use cszchen\alte\widgets\Box; $this->title = "Title here!"; Box::begin([ 'type' => 'primary', 'title' => 'Box title', 'refreshUrl' => '/userinfo', 'tools' => ['refresh', 'collapse', 'remove'], 'collapsed' => false ]); echo "cszchen/alte"; Box::end();
NavBar
NavBar::begin([ 'brandLabel' => 'cszchen/alte', 'brandLabelSm' => 'Alte', 'items' => [ [ 'label' => 'Home', 'url' => ['/site/index'], 'icon' => 'fa fa-dashboard test-green', 'items'=>[ ['label' => 'child#1', 'icon' => 'fa fa-user'], ['label' => 'child#2', 'url' => '#'] ] ], ['label' => 'About', 'small' => 15, 'url' => ['/site/about']] ] ]); NavBar::end();
SideBar
echo Sidebar::widget([ //'search' => false, 'items' => [ [ 'label' => 'level1', 'url' => '#', 'small' => 1, 'icon' => 'fa fa-dashboard text-green', 'items' => [ ['label' => 'level2', 'url' => '#', 'icon' => 'fa fa-user text-red'], ['label' => 'level2', 'url' => '#', 'items' => [['label' => 'level3']]] ] ] ], ]);
Box
Box::begin([ 'type' => 'primary', 'title' => 'Box title', 'refreshUrl' => '/userinfo', 'tools' => ['refresh', 'collapse', 'remove'], 'collapsed' => false ]); echo "cszchen/alte"; Box::end();
cszchen/alte 适用场景与选型建议
cszchen/alte 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 919 次下载、GitHub Stars 达 19, 最近一次更新时间为 2015 年 11 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「widget」 「yii2」 「AdminLTE」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cszchen/alte 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cszchen/alte 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cszchen/alte 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
A short description of what your package does
Easy AdminLTE integration with Laravel
Laravel 5.7 Boilerplate based on Bootstrap 4 and Tabler for Backend.
Add a weather widget to Flarum
统计信息
- 总下载量: 919
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-08