dannytrue/dlutwbootstrap
Composer 安装命令:
composer require dannytrue/dlutwbootstrap
包简介
ZF2 module to generate Twitter Bootstrap UI - forms, navigation, etc.
README 文档
README
Introduction
DluTwBootstrap is a Zend Framework 2 module facilitating usage of Twitter Bootstrap in ZF2 applications.
If you are new to DluTwBootstrap, first go to http://apps.zfdaily.com/dlutwbootstrap-demo to see it in action on-line.
Implemented features
Forms
- All four Twitter Bootstrap form types supported - Horizontal, Vertical, Inline, Search
- Supported form elements
- Button
- Checkbox
- Csrf
- File
- Hidden
- MultiCheckbox (not supported on Inline and Search forms)
- Multiselect (not supported on Inline and Search forms)
- Password
- Radio (not supported on Inline and Search forms)
- Reset
- Select
- Submit
- Text
- Textarea
- Inline help (hint), block help (description) and placeholder texts are supported with relevant elements
- Error state and messages (error messages are supported on Horizontal and Vertical forms)
- Highlighting required fields
- Prepend / append text to text input
- Multi-checkbox and radio can be optionally rendered inline
- Fieldset legend
Supported versions
- Zend Framework 2.0.0 - 218 (commit 2a398b4e81)
- Twitter Bootstrap v2.1.0
IMPORTANT: If the module does not seem to work, check the version of your ZF2 library and update to the version and commit specified above.
Installation - manual
-
Go to your project's directory.
-
Clone this project into your
./vendordirectory as aDluTwBootstrapmodule:git clone https://bitbucket.org/dlu/dlutwbootstrap.git ./vendor/DluTwBootstrap -
Follow the Post installation steps bellow
Installation - with Composer
- Go to your project's directory.
- Edit your
composer.jsonfile and add"dlu/dlutwbootstrap": "dev-master"intorequiresection. - Run
php composer.phar install(orphp composer.phar update). - Follow the Post installation steps bellow
Post installation steps
-
Copy everything from the module's
publicdirectory to<your app>/public(i.e. Twitter Bootstrap and jQuery css files, js files and images). -
Enable the DluTwBootstrap module in your app config file
<your app>/config/application.config.php:- add
'DluTwBootstrap',undermodules
- add
-
Optional: Move
module.DluTwBootstrap.global.phpfrom the module's root directory to<your app>/config/autoloaddirectory. This sets the layout script to the one supplied with the module to load all necessary css and js dependencies. (Do not do this if you have your own layout and you already have the Twitter Bootstrap environment set-up properly in your project!)
Check and Demo
To check that you have installed the module properly and to see it in action, install the DluTwBootstrap Demo module. The Demo module is the easiest and quickest way to start working with the DluTwBootstrap module as it clearly shows the rendered output (e.g. a form) 'side by side' with the actual source code used to produce that output. Recommended!
Links
dannytrue/dlutwbootstrap 适用场景与选型建议
dannytrue/dlutwbootstrap 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 407 次下载、GitHub Stars 达 4, 最近一次更新时间为 2012 年 12 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「zf2」 「module」 「twitter bootstrap」 「zend framework 2」 「dlutwbootstrap」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dannytrue/dlutwbootstrap 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dannytrue/dlutwbootstrap 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dannytrue/dlutwbootstrap 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Handles basic OAuth/OAuth2 authentication along with classes for common services
LosLog provides some log utility
Simple Twitter API wrapper
Simple Sharing generates social media share links within CP entry pages, allowing you to quickly & easily share entries.
EdpModuleLayouts is very simple Laminas module for making module-specific layouts insanely easy.
Zend Framework module to leverage the symfony dependency injection container
统计信息
- 总下载量: 407
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2012-12-27