hiqdev/yii2-thememanager
Composer 安装命令:
composer require hiqdev/yii2-thememanager
包简介
Pluggable themes for Yii2
README 文档
README
Pluggable themes for Yii2
This Yii2 plugin provides easy theming for Yii2 projects.
And allows to create and use themes as composer packages.
So changing a theme on a site becomes as simple as changing
a single require line in composer.json.
At the moment there are several themes available:
- AdminLte - yii2-theme-adminlte
- Agency - yii2-theme-agency
- DataServ - yii2-theme-dataserv
- Flat - yii2-theme-flat
- Hyde - yii2-theme-hyde
- Obaju - yii2-theme-obaju
- Yii2 original - yii2-theme-original
- Sailor - yii2-theme-sailor
- Twenty Fifteen - yii2-theme-twentyfifteen
Installation
This package is not intended to be required directly in your project. Instead you should require theme(s) you've chosen and this package will get required as a dependency.
Please see hiqdev/hisite-template as example of project using this theming library.
Idea
The main goal of this theming library is to allow creation and use of easy
pluggable themes: to change a theme on a site it is enough just to require
other theme package in project's composer.json.
To achieve this goal several technologies were used:
- Yii2 theming with
pathMapauto assembling; - Yii2 dependency injection for widgets and menus;
- composer-config-plugin to create themes as plugins i.e. code combined and distributed together with configuration.
This package provides:
- bootrstrappable
ThemeManagercomponent that collects and setups in application view properThemeobject with properpathMap; - widgets and menus that can be configured through params and substituted with DI;
- theme
DebugPanelshowing actualpathMap.
Configuration
This extension is supposed to be used with composer-config-plugin.
Also you can use it usual way by copy-pasting config. See src/config/web.php for configuration example.
Available configuration parameters:
themeManager.defaultTheme- default themecopyright.year- CopyrightYears widgetcopyright.yearslogo.url- LogoLink widgetlogo.namelogo.optionslogo.imagelogo.imageOptionslogo.smallImagelogo.smallImageOptionsorganization.url- OrganizationLink widgetorganization.nameorganization.optionspoweredBy.url- PoweredBy widgetpoweredBy.namepoweredBy.versionpoweredBy.optionssocialLinks.links- SocialLinks widget
For more details please see src/config/params.php.
License
This project is released under the terms of the BSD-3-Clause license. Read more here.
Copyright © 2015-2017, HiQDev (http://hiqdev.com/)
hiqdev/yii2-thememanager 适用场景与选型建议
hiqdev/yii2-thememanager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 34k 次下载、GitHub Stars 达 25, 最近一次更新时间为 2015 年 04 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「theme」 「manager」 「yii2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hiqdev/yii2-thememanager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hiqdev/yii2-thememanager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hiqdev/yii2-thememanager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
A Bootstrap 4.x base theme for SilverStripe
Lucency Theme
KCFinder web file manager
Publish / Subscribe / Event Manager
统计信息
- 总下载量: 34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 28
- 点击次数: 15
- 依赖项目数: 11
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-04-18