Skip to content

incodeapps/cakephp3-bootstrap-helpers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CakePHP 3.x Helpers for Bootstrap

Software License Travis Packagist

CakePHP 3.x Helpers to generate HTML with @Twitter Boostrap style: Breadcrumbs, Flash, Form, Html, Modal, Navbar, Panel and Paginator helpers available!

Work in progress

I am currently working on rewritting the helpers for Bootstrap 4, current work status:

  • FlashHelper - 100%
  • FormHelper - 100% (Alpha)
  • HtmlHelper - 100%
  • ModalHelper - 0%
  • NavbarHelper - 0%
  • PaginatorHelper - 100% (Alpha)
  • PanelHelper - 0%

Breaking changes from previous versions

  • FormHelper:
    • it is not possible to place error message in a separate column in horizontal form, the error message will always be put below the input.

Note: It may happen that the generated HTML is not exactly the one required by Bootstrap, but the final rendering should be the same. Some examples are:

  • the way radio controls are wrapped inside horizontal forms;
  • the way checkbox and submit button are offseted in horizontal form (an empty <div> element is added before the input <div>).

How to... ?

Installation

If you want the latest Bootstrap 4 version of the plugin:

  • Add the plugin to your composer.json (see below if you want to use another branch / version):
composer require holt59/cakephp3-bootstrap-helpers:v4-updated
  • Load the plugin in your config/bootstrap.php:
Plugin::load('Bootstrap');
$this->loadHelper('Html', [
    'className' => 'Bootstrap.Html',
    // Other configuration options...
]);

The full plugin documentation is available at https://holt59.github.io/cakephp3-bootstrap-helpers/.

Table of version and requirements

Version Bootstrap version CakePHP version Information
master / 3.1.2 3 >= 3.4.0 Current active branch.
> 3.0.5, <= 3.1.1 3 >= 3.2.3, < 3.4.0 Not actively maintained (open issue(s) if necessary).
<= 3.0.5 3 >= 3.0.0 Deprecated.
4.0.0-alpha 4 N/A Deprecated.
4.0.1-alpha 4 >= 3.4.0 Coming soon...

Contributing

Do not hesitate to post a github issue or submit a pull request if you find a bug or want a new feature.

Who is using it?

Non-exhaustive list of projects using these helpers, if you want to be in this list, do not hesitate to email me or post a comment on this issue.

Copyright and license

The MIT License (MIT)

Copyright (c) 2013-2017, Mikaël Capelle.

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.

See LICENSE.

About

CakePHP 3.x Helpers for Bootstrap 3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%