PHPackages                             cake17/cakephp-bootstrap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cake17/cakephp-bootstrap

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

cake17/cakephp-bootstrap
========================

To easily use Bootstrap Twitter 3.x in CakePHP projects

0.2.0(11y ago)2411MITPHP

Since Dec 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/cake17/cakephp-bootstrap)[ Packagist](https://packagist.org/packages/cake17/cakephp-bootstrap)[ Docs](https://github.com/cake17/cakephp-bootstrap)[ RSS](/packages/cake17-cakephp-bootstrap/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

Bootstrap Twitter for CakePHP
=============================

[](#bootstrap-twitter-for-cakephp)

[![Build Status](https://camo.githubusercontent.com/6b57aeb347cab7881b80a2583ea621322af84d1b9a68a3982f46e6bb4983a9e0/68747470733a2f2f6170692e7472617669732d63692e6f72672f63616b6531372f63616b657068702d626f6f7473747261702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/cake17/cakephp-bootstrap)[![Latest Stable Version](https://camo.githubusercontent.com/b925f8ffc9ce31c9804dbf68f309b8163009c7ca9c71dafb15358040acdafa2e/68747470733a2f2f706f7365722e707567782e6f72672f63616b6531372f63616b657068702d626f6f7473747261702f762f737461626c652e706e67)](https://packagist.org/packages/cake17/cakephp-bootstrap)[![License](https://camo.githubusercontent.com/20b2378b6832dc8402ec537e3ba413be9364955dfad7c5d5ca024161f03aaec4/68747470733a2f2f706f7365722e707567782e6f72672f63616b6531372f63616b657068702d626f6f7473747261702f6c6963656e73652e706e67)](https://packagist.org/packages/cake17/cakephp-bootstrap)[![Total Downloads](https://camo.githubusercontent.com/ad312b2222709b87361ce867e64c6ac095032e74bdeb902700d88293ab600ccd/68747470733a2f2f706f7365722e707567782e6f72672f63616b6531372f63616b657068702d626f6f7473747261702f642f746f74616c2e706e67)](https://packagist.org/packages/cake17/cakephp-bootstrap)

This plugin is still under development...

Plugin's Objective
------------------

[](#plugins-objective)

This plugin adds functionnalities to use Twitter Bootstrap in CakePHP projects.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.4.16
- [CakePHP 3.x](http://book.cakephp.org/3.0/en/index.html)

Installation
------------

[](#installation)

*\[Using [Composer](http://getcomposer.org/)\]*

Add the plugin to your project's `composer.json` - something like this:

```
{
    "require": {
        "cake17/cakephp-bootstrap": "dev-master"
    }
}
```

Because this plugin has the type `cakephp-plugin` set in it's own `composer.json`, composer knows to install it inside your `/plugins` directory, rather than in the usual vendors file. It is recommended that you add `/plugins/Bootstrap` to your .gitignore file. (Why? [read this](http://getcomposer.org/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md).)

Usage of plugin
---------------

[](#usage-of-plugin)

Enable the plugin in your config/bootstrap.php file:

```
Plugin::load('Bootstrap', ['routes' => false, 'bootstrap' => false]);

```

More info in the [github docs](http://cake17.github.io/cakephp-bootstrap)

What's inside ?
---------------

[](#whats-inside-)

**JS**

- Bootstrap Twitter v3.3.2 : with CDN netdna
- Jquery-ui v1.10.4 : with CDN google
- Jquery v2.1.0 : with CDN google
- textarea editor based on Twitter Bootstrap's wysihtml5 : wysihtml5-0.3.0.js, bootstrap-wysihtml5.js =&gt; To do so:
    - copy textarea.js or textarea\_mini.js where you want to use it
    - Put the same id in textarea.js copied and in the form id that you want
    - Possible to change the type of highlight of code in textarea/stylesheets with one the css in css/bootstrap/highlight/
    - insert in the view echo $this-&gt;Html-&gt;script('NomPlugin.bootstrap/textarea.js');
- Multiselect for boostrap : bootstrap-multiselect.js and bootstrap-multiselect.default.js

**CSS**

- Twitter bootstrap css : with CDN
- Wysihtml5 css : bootstrap-wysihtml5.css and wysiwyg-color.css and css in folder `highlight/`
- Bootstrap multiselect : bootstrap-multiselect.css

**HELPERS**

- BootstrapMultiselect To implement a bootstrap multiselect
- BootstrapHtmlHelper Available functions:

    ```
      - icon($class, array $options = [])
      - label($message, array $options = [])
      - alert($message, array $options = [])
      - badge($message, array $options = [])
      - button($message, array $options = [])
      - link($title, $url = null, array $options = [])
      - links($type, $options = [])
      - linksActives($actif, $id, $options = [])
      - linksPrincipal($principal, $id, $options = [])
      - collapse($formName = "accordeon", $actions = [])
      - pagination()

    ```
- BootstrapFormHelper

**Bake Templates**

- form
- index
- view

Tests
-----

[](#tests)

To test the plugin, clone it and run composer install. Then run

- `./vendor/bin/phpunit`
- `./vendor/bin/phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests --ignore=vendor`

Support &amp; Contribution
--------------------------

[](#support--contribution)

For support and feature request, please contact me through Github issues

Please feel free to contribute to the plugin with new issues, requests, unit tests and code fixes or new features. If you want to contribute some code, create a feature branch, and send us your pull request. Unit tests for new features and issues detected are mandatory to keep quality high.

License
-------

[](#license)

Copyright (c) \[2014-2015\] \[cake17\]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~57 days

Total

2

Last Release

4100d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a43da59c9c660b197642583e11bc825261993aceb3351df6f44f89458628012?d=identicon)[cake17](/maintainers/cake17)

---

Top Contributors

[![cake17](https://avatars.githubusercontent.com/u/1652972?v=4)](https://github.com/cake17 "cake17 (89 commits)")

---

Tags

helpershtmlcakephptwitterbootstrapform

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cake17-cakephp-bootstrap/health.svg)

```
[![Health](https://phpackages.com/badges/cake17-cakephp-bootstrap/health.svg)](https://phpackages.com/packages/cake17-cakephp-bootstrap)
```

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[slywalker/twitter_bootstrap

CakePHP Bootstrap (for Twitter) Plugin

28532.2k](/packages/slywalker-twitter-bootstrap)[aura/html

Provides HTML escapers and helpers, including form input helpers.

52270.5k21](/packages/aura-html)[dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

401.0M11](/packages/dereuromark-cakephp-shim)[dereuromark/cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

51174.9k4](/packages/dereuromark-cakephp-geo)[wyrihaximus/minify-html

Html minifier for CakePHP3

18148.3k1](/packages/wyrihaximus-minify-html)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
