2017 © Pedro Peláez
 

cakephp-plugin cakephp-bootstrap

To easily use Bootstrap Twitter 3.x in CakePHP projects

image

cake17/cakephp-bootstrap

To easily use Bootstrap Twitter 3.x in CakePHP projects

  • Monday, September 7, 2015
  • by cake17
  • Repository
  • 1 Watchers
  • 2 Stars
  • 408 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Bootstrap Twitter for CakePHP

Build Status Latest Stable Version License Total Downloads, (*1)

This plugin is still under development..., (*2)

Plugin's Objective

This plugin adds functionnalities to use Twitter Bootstrap in CakePHP projects., (*3)

Requirements

Installation

[Using Composer], (*4)

Add the plugin to your project's composer.json - something like this:, (*5)

{
    "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.), (*6)

Usage of plugin

Enable the plugin in your config/bootstrap.php file:, (*7)

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

More info in the github docs, (*8)

What's inside ?

JS, (*9)

  • 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 => 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->Html->script('NomPlugin.bootstrap/textarea.js');
  • Multiselect for boostrap : bootstrap-multiselect.js and bootstrap-multiselect.default.js

CSS, (*10)

  • 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, (*11)

  • BootstrapMultiselect To implement a bootstrap multiselect, (*12)

  • BootstrapHtmlHelper Available functions:, (*13)

    - 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, (*14)

Bake Templates, (*15)

  • form
  • index
  • view

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, (*16)

Support & Contribution

For support and feature request, please contact me through Github issues, (*17)

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., (*18)

License

Copyright (c) [2014-2015] [cake17], (*19)

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:, (*20)

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

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., (*22)

The Versions

07/09 2015

dev-master

9999999-dev https://github.com/cake17/cakephp-bootstrap

To easily use Bootstrap Twitter 3.x in CakePHP projects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar cake17

helpers cakephp form bootstrap html twitter

25/02 2015

0.2.0

0.2.0.0 https://github.com/cake17/cakephp-bootstrap

To easily use Bootstrap Twitter 3.x in CakePHP projects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar cake17

helpers cakephp form bootstrap html twitter

27/01 2015

dev-admin-panel

dev-admin-panel https://github.com/cake17/cakephp-bootstrap

To easily use Bootstrap Twitter 3.x in CakePHP projects

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar cake17

helpers cakephp form bootstrap html twitter

29/12 2014

0.1.0

0.1.0.0 https://github.com/cake17/cakephp-bootstrap

To easily use Bootstrap Twitter 3.x in CakePHP projects

  Sources   Download

MIT

The Requires

 

by Avatar cake17

helpers cakephp form bootstrap html twitter