Download the PHP package deanblackborough/bootstrap-4-helpers without Composer
On this page you can find all versions of the php package deanblackborough/bootstrap-4-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deanblackborough/bootstrap-4-helpers
More information about deanblackborough/bootstrap-4-helpers
Files in deanblackborough/bootstrap-4-helpers
Package bootstrap-4-helpers
Short Description Standalone Bootstrap 4 view helpers to use outside of Zend Framework apps
License MIT
Homepage https://github.com/deanblackborough/bootstrap-4-helpers
Informations about the package bootstrap-4-helpers
Bootstrap 4 helpers
Bootstrap 4 component helpers
Description
Utility wrapper classes for the Bootstrap 4 view helpers in my ZF3-view-helpers library (https://github.com/deanblackborough/zf3-view-helpers), allows usage of the view helpers in any PHP site, not just Zend Framework apps.
Installation
The easiest way to use the view helpers is via composer, composer require deanblackborough/bootstrap-4-helpers
,
alternatively include the classes in src/
in your library.
Usage
Create a view helper is a two step process, you need to call the ViewHelper factory to create the relevant view helper and then you can chain the helpers methods to create your component.
The view helpers
Alert
Factory call
Methods, can be chained
-
- Set the background colour
-
- Set optional heading
-
- Set the text colour
Badge
Factory call
Methods, can be chained
-
- As link
-
- Display as pill
-
- Set the background colour
-
- Set the text colour
Button
Factory call
Methods, can be chained
-
- Active
-
- Display as a full width block
-
- Add a custom class
-
- Set disabled
-
- Large button
-
- Set the background colour
-
- Render as a button
-
- Render as an input
-
- Outline button
-
- Set URI
-
- Small button
Column
Factory call
Methods, can be chained
-
- Set lg column width
-
- Set md column width
-
- Set the background colour
-
- Set the text colour
-
- Set sm column width
-
- Set xl column width
-
- Set xs column width
Jumbotron
Factory call
Methods, can be chained
-
- Add fluid class
-
- Set the background colour
-
- Set the display level
-
- Set an optional sub heading
-
- Set the text colour
Progress bar
Factory call
Methods, can be chained
-
- Animate
-
- Set the background colour
-
- Set height
-
- Set a label
-
- Set the text colour
-
- Striped background
Row
Factory call
Methods, can be chained
-
- Set the background colour
-
- Set the text colour
No tests?
I'm not adding tests to this library, the tests for the functionality are within the https://github.com/deanblackborough/zf3-view-helpers library, this library simply makes it possible to use the view helpers outside of the Zend Framework, I've not added any additional functionality.
All versions of bootstrap-4-helpers with dependencies
zendframework/zend-view Version ^2.10
deanblackborough/zf3-view-helpers Version ^1
deanblackborough/zf3-view-helpers-code-completion Version ^1