mopa/bootstrap-bundle
Composer 安装命令:
composer require mopa/bootstrap-bundle
包简介
Easy integration of twitters bootstrap into symfony2
README 文档
README
MopaBootstrapBundle is a collection of code to integrate twitter's bootstrap (http://twitter.github.com/bootstrap/) as easy as possible into your symfony (http://www.symfony.com) Project.
To use MopaBootstrapBundle and Twitter's Bootstrap 3 in your project add it via composer
Versions and dependencies
| MopaBootstrapBundle | Bootstrap | Symfony | PHP |
|---|---|---|---|
| [3.4] (master) | ^3.0 | ^4.4 || ^5.1 || ^6.0 | ^7.2 || ^8.0 |
| [3.3] (3.3) | ^3.0 | ^2.3 || ^3.0 || ^4.0 | |
| [3.2] (unmaintained) | ^3.0 | ^2.3 || ^3.0 | |
| [3.1] (unmaintained) | ^3.0 | ^2.3 || ^3.0 | |
| [3.0] (unmaintained) | ^3.0 | ^2.3 || ^3.0 | |
| [2.3] (unmaintained) | ^2.0 | ^2.3 | |
| [2.2] (unmaintained) | ^2.0 | >=2.1,<2.4 | |
| [2.1] (unmaintained) | ^2.0 | ~2.1.0 | |
| [2.0] (unmaintained) | ^2.0 | ~2.0.0 | |
| [1.x] (unmaintained) | ^1.0 | ^2.0 |
Updates
New in 3.1: The way horizontal works has been slightly altered due to a change in Symfony forms. This may or may
not affect some behavior of your existing forms. ALL root form elements, whether they have a parent form or not will
start with horizontal === true (or whatever value you set in the config). For the most part this shouldn't affect many users.
horizontal will also correctly pass itself down to collection types (and all child forms). So if your collection is horizontal,
so will the collection items. If you want your collection items only to be inline, then you can pass these options to your collection:
array( 'entry_options' => array('horizontal' => false), // 2.8+ 'options' => array('horizontal' => false), // < 2.8 )
horizontal_wrap_children has been removed, as this can be solved using the above options.
Branches
To use this bundle with bootstrap 3 use the latest release:
composer require mopa/bootstrap-bundle twbs/bootstrap
Or config via composer.json
For LESS:
{
"require": {
"mopa/bootstrap-bundle": "~3.0",
"twbs/bootstrap": "~3.3.0"
}
}
For SASS:
{
"require": {
"mopa/bootstrap-bundle": "~3.0",
"twbs/bootstrap-sass": "~3.3.0"
}
}
If you wish to use the current master branch, then use the following:
composer require mopa/bootstrap-bundle:dev-master twbs/bootstrap:dev-master
For bootstrap 2 use the v2.3.x branch:
composer require mopa/bootstrap-bundle:2.3.x-dev twbs/bootstrap:2.3.2
To understand which versions are currently required have a look into BRANCHES.md
Documentation
The bulk of the documentation is stored in the Resources/doc folder in this bundle In any case, if something is not working as expected after a update:
Live Show
To see the bundle, its capabilities and some more doc just have a look on
Additional Resources:
- MopaBootstrapSandboxBundle - Seperate live docs from code
- symfony-bootstrap is also available
Installation
Installation instructions are located in the
Included Features
- Bootstrap Version detection via Composer Bridge
- Twig Extensions and templates for use with symfony2 Form component
- control your form either via the form builder or the template engine
- control nearly every bootstrap2 form feature
- javascript and twig blocks for dynamic collections
- A generic Navbar class to generate your Navbar outside the template
- helpers for dropdowns, seperators, etc.
- A generic Tab class to Manage bootstrap tabbing
- Twig templates for KnpPaginatorBundle (https://github.com/knplabs/KnpPaginatorBundle)
- Twig templates for CraueFormFlowBundle (https://github.com/craue/CraueFormFlowBundle)
- Twig template for KnpMenuBundle (https://github.com/KnpLabs/KnpMenuBundle)
- icon support on menu links
Translations
If you use KnpPaginatorBundle with MopaBootstrapBundle, you can translate labels to your language. To do this add new file
Resources/translations/pagination.[YOUR LOCALE CODE].yml
As example you have there Polish translation.
Versioning
We aim to follow semantic versioning with our releases.
Contribute
If you want to contribute your code to MopaBootstrapBundle please be sure that your PR's are valid to Symfony2.1 Coding Standards. You can automatically fix your code for that with PHP-CS-Fixer tool.
You can see who already contributed to this project on Contributors page
License
This bundle is under the MIT license. For more information, see the complete LICENSE file in the bundle.
mopa/bootstrap-bundle 适用场景与选型建议
mopa/bootstrap-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.96M 次下载、GitHub Stars 达 703, 最近一次更新时间为 2011 年 11 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「form」 「extra form」 「bootstrap」 「bootstrap form」 「template」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mopa/bootstrap-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mopa/bootstrap-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mopa/bootstrap-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Extra form types for your Symfony projects
Some extra stuff for doctrine with MYSQL Plateform.
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
An extension of Parsedown that adds support for Markdown Extra.
Bundle extension that installs and loads Semantic MediaWiki and associated extensions
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
统计信息
- 总下载量: 2.96M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 718
- 点击次数: 23
- 依赖项目数: 45
- 推荐数: 8
其他信息
- 授权协议: MIT
- 更新时间: 2011-11-27