定制 dannytrue/dlutwbootstrap 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

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

  1. Go to your project's directory.

  2. Clone this project into your ./vendor directory as a DluTwBootstrap module:

    git clone https://bitbucket.org/dlu/dlutwbootstrap.git ./vendor/DluTwBootstrap

  3. Follow the Post installation steps bellow

Installation - with Composer

  1. Go to your project's directory.
  2. Edit your composer.json file and add "dlu/dlutwbootstrap": "dev-master" into require section.
  3. Run php composer.phar install (or php composer.phar update).
  4. Follow the Post installation steps bellow

Post installation steps

  1. Copy everything from the module's public directory to <your app>/public (i.e. Twitter Bootstrap and jQuery css files, js files and images).

  2. Enable the DluTwBootstrap module in your app config file <your app>/config/application.config.php:

    • add 'DluTwBootstrap', under modules
  3. Optional: Move module.DluTwBootstrap.global.php from the module's root directory to <your app>/config/autoload directory. 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 dannytrue/dlutwbootstrap 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 407
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 25
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2012-12-27