libriciel / cakephp4-bootstrap-helpers
Bootstrap Helpers for CakePHP 3.0
Package info
gitlab.adullact.net/Libriciel/archivage/cakephp4-bootstrap-helpers.git
Type:cakephp-plugin
pkg:composer/libriciel/cakephp4-bootstrap-helpers
Requires
- php: ^8.3
- ext-libxml: *
- ext-xml: *
- ext-xmlreader: *
- cakephp/cakephp: ~5.0.0 || ~5.2.0
Requires (Dev)
- ext-dom: *
- ext-mbstring: *
- cakephp/cakephp-codesniffer: ~2.1
- phpunit/phpunit: ^12.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 4.2.1
- 4.2.0
- 4.1.0
- v4.0.3.x-dev
- v4.0.2
- v3.1.4.x-dev
- v3.1.4
- v3.1.3.x-dev
- v3.1.3
- v3.1.2.x-dev
- v3.1.2
- v3.1.1.x-dev
- v3.1.1
- v3.1.0
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- dev-php83
- dev-cake4-bs4-1.0.0
- dev-4.0.1-alpha
- dev-cakephp-3.8-support
- dev-fix-cakephp-3.7
- dev-fix-travis-cakephp-3.7
- dev-icon-helper
- dev-new-travis
- dev-fix-issue-144
- dev-v4-updated
- dev-stacked-states
- dev-tab-helper
This package is auto-updated.
Last update: 2026-10-29 13:27:32 UTC
README
Helpers de vue CakePHP 3.7 et plus (utilisé en CakePHP 4) qui génèrent du HTML au format Bootstrap (formulaires, modales, panels, navbar, fil d'Ariane, pagination, messages flash). Paquet composer : libriciel/cakephp-bootstrap-helpers.
Dépendance de
| Projet | Build | Coverage |
|---|---|---|
| asalae | ||
| versae | ||
| refae | ||
| asalae-core |
Prérequis
- PHP
>=5.5.9
Installation
composer require libriciel/cakephp-bootstrap-helpers:dev-master
Dans Application::bootstrap() :
$this->addPlugin('Bootstrap');
Utilisation
View/Helper
Helpers Breadcrumbs, Flash, Form, Html, Modal, Navbar, Paginator et Panel générant du HTML au format Bootstrap, à charger à la place des helpers CakePHP (Bootstrap.<Nom>).
src/View/AppView.php (asalae)
'Breadcrumbs' => ['className' => 'Bootstrap.Breadcrumbs'],
// ...
'Modal' => [
'className' => 'Bootstrap.Modal',
'templates' => [
'modalTitle' => '<h3 class="h4 modal-title{{attrs.class}}" {{attrs}}>{{content}}</h3>',
// ...
],
],
// ...
'Navbar' => ['className' => 'Bootstrap.Navbar'],
// ...
'Panel' => ['className' => 'Bootstrap.Panel'],
src/View/Helper/Object/ModalView.php (asalae-core)
return $this->Helper->Modal->create($params)
. $this->Helper->Modal->header($this->title)
. $this->Helper->Modal->body($this->content, $this->bodyParams)
. $this->Helper->Modal->end(
$this->returnButton
)
. $this->Helper->modalScript($params['id']);
View/Widget
Widgets de formulaire : ColumnSelectBox, DateTime, FancyFile, InlineRadio, InlineRadioNestingLabel.
Licence
Fork de Holt59/cakephp3-bootstrap-helpers, licence MIT, © 2013-2017 Mikaël Capelle. Voir LICENSE.