fr05t1k/admin-theme-bundle
Composer 安装命令:
composer require fr05t1k/admin-theme-bundle
包简介
Admin Theme based on the AdminLTE Template for easy integration into symfony
README 文档
README
Admin Theme based on the AdminLTE Template for easy integration into symfony. This bundle integrates several commonly used javascripts and the awesome AdminLTE Template.
Installation
Installation using composer is really easy: this command will add "avanzu/admin-theme-bundle": "~2.0" to your composer.json
and will download the bundle:
php composer.phar require avanzu/admin-theme-bundle
Enable the bundle in your kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Avanzu\AdminThemeBundle\AvanzuAdminThemeBundle(), ); }
Install assets (preferably using symlink method but hardcopy works as well)...
php bin/console assets:install --symlink
Initialize the theme
php bin/console avanzu:admin:initialize [--symlink|--relative]
initializing will create several symlinks (falling back to hard copy) into the web/theme folder from the required almasaeed2010/adminlte package:
- bootstrap
- dist
- plugins
- documentation
- starter.html
Configure
Although the bundle should run with zero configruration, there are several settings you might want to adjust to your taste or requirements. Please keep in mind that you don't have to put the whole config block into your configuration but rather the ones you want to change from the defaults.
These are the configuration default values:
# config.yml avanzu_admin_theme: use_twig : true enable_demo: false theme: default_avatar : bundles/avanzuadmintheme/img/avatar.png skin : skin-blue # see skin listing for viable options fixed_layout : false # ------------------------------------------------------- boxed_layout : false # these settings relate directly to the "Layout Options" collapsed_sidebar: false # described in the adminlte documentation mini_sidebar : false # ------------------------------------------------------- control_sidebar : false # controls wether the right hand panel will be rendered knp_menu: # knp menu integration enable : true main_menu : avanzu_main # the menu builder alias to use for the main menu breadcrumb_menu: false # the menu builder alias to use for the breacrumbs
AdminLTE skins are:
- skin-blue (default for this bundle)
- skin-blue-light
- skin-yellow
- skin-yellow-light
- skin-green
- skin-green-light
- skin-purple
- skin-purple-light
- skin-red
- skin-red-light
- skin-black
- skin-black-light
If you want to know more then go ahead and check docs for AdminLTE here.
Demo-Mode
In order to se a working implementation of the several components, you can enable the demo mode:
# config.yml avanzu_admin_theme: enable_demo: true
and add the routes to your routing configuration:
# routing.yml avanzu_admin: prefix: /admin resource: "@AvanzuAdminThemeBundle/Resources/config/routes.yml"
Upgrade notice
Version >= 2.0
This version is not fully backwards compatible regarding the templates and assets.
- does no longer rely on any external build tools or package managers (except composer of course). In consequence, there are no pre packaged scripts/styles or asset groups available. If you want to use script and/or stylesheet packing, you will most likely already have the tools of your choice in place and are now able to use them as fits best for your needs.
- Introduces route name aliases for url generation inside the components.
Version >= 1.3
- comes with pre packaged asset files located under
Resources/public/static/[prod|dev]. So, there is no longer a strict requirement for bower and/or assetic. The assetic groups hovever, are still there and should work as usual.
Next Steps
fr05t1k/admin-theme-bundle 适用场景与选型建议
fr05t1k/admin-theme-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 44 次下载、GitHub Stars 达 1, 最近一次更新时间为 2016 年 07 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 fr05t1k/admin-theme-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fr05t1k/admin-theme-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 44
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-13