Download the PHP package vitexsoftware/ease-twbootstrap5 without Composer
On this page you can find all versions of the php package vitexsoftware/ease-twbootstrap5. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vitexsoftware/ease-twbootstrap5
More information about vitexsoftware/ease-twbootstrap5
Files in vitexsoftware/ease-twbootstrap5
Package ease-twbootstrap5
Short Description Set of Twitter Bootstrap 5 rendering objects
License MIT
Informations about the package ease-twbootstrap5
php-ease-twbootstrap5
TwitterBootstrap5 classes for EasePHP Framework
Note: If you are looking for a similar PHP library for Bootstrap 4, you can find it at php-ease-twbootstrap4. Migrating from Bootstrap 4? See the Upgrade Guide.
Overview
A comprehensive set of PHP classes for building Bootstrap 5 UI components within the EasePHP Framework. Each class wraps a specific Bootstrap 5 component and generates the correct HTML structure and CSS classes automatically.
Targets Bootstrap 5.3.
Classes and Their Functionalities
Accordion.php
- Functionality: Collapsible content panels.
- Features: Items added via
addAccordionItem(); supportsalwaysOpenmode (multiple sections open simultaneously).
Alert.php
- Functionality: Create and manage Bootstrap alert messages.
- Features: Supports contextual types (
success,danger,warning,info,primary,secondary,light,dark).
Badge.php
- Functionality: Generate Bootstrap badges.
- Features: Supports all contextual colors via
text-bg-*classes.
Breadcrumb.php
- Functionality: Navigation path (breadcrumb trail).
- Features: Accepts ordered
['Label' => 'url']pairs; the last item is automatically marked active.
ButtonGroup.php
- Functionality: Group multiple buttons into a single line.
- Features: Size variants (
lg,sm), vertical stacking.
Card.php
- Functionality: Create Bootstrap card components.
- Features: Generic card container; use
Panelfor a structured header/body/footer layout.
Col.php
- Functionality: Define column layouts using Bootstrap's grid system.
- Features: Supports column sizes 1–12 and responsive breakpoints (
xs,sm,md,lg,xl,xxl).
Collapse.php
- Functionality: Togglable content panel.
- Features:
triggerButton()returns a ready-made toggle button; supports open-by-default state.
Container.php
- Functionality: Create Bootstrap container elements.
- Features: Supports fluid and fixed-width containers.
Form.php
- Functionality: Generate Bootstrap forms.
- Features: Wraps inputs in a div; auto-applies
form-controlto added inputs; useaddInput()for labelled input groups.
FormGroup.php
- Functionality: Group form controls with labels and help text.
- Features: Supports different form group layouts and validation states.
InputGroup.php
- Functionality: Create input groups with prepend text or elements.
- Features: Supports various input types and custom addon elements.
LinkButton.php
- Functionality: Generate Bootstrap-styled anchor (
<a>) buttons. - Features: Supports all button variants (
primary,secondary,success,danger,warning,info,light,dark,link); defaults tosecondary.
ListGroup.php
- Functionality: Versatile Bootstrap list component.
- Features: Plain items or linked items via
['label' => 'url']; flush and numbered variants;addListItem()for contextual colors and active state.
Modal.php
- Functionality: Bootstrap modal dialog.
- Features:
triggerButton()returns a ready-made button; optional footer; size variants (sm,lg,xl); public$header,$body,$footerfor further customisation.
Nav.php
- Functionality: Standalone Bootstrap navigation component.
- Features: Plain, tabs, and pills styles; fill and justified variants;
addNavItem()for active/disabled states.
NavItemDropDown.php
- Functionality: Dropdown menu item for use inside a Navbar.
- Features: Supports multiple items and dividers via
addDropdownItem().
Navbar.php
- Functionality: Generate Bootstrap navigation bars.
- Features: Responsive toggle, brand element, dropdown menus, and search form support.
OffCanvas.php
- Functionality: Bootstrap offcanvas slide-in panel.
- Features: Title, close button, and arbitrary body content.
Pagination.php
- Functionality: Page navigation controls.
- Features: Auto-generates numbered pages with previous/next controls; disabled states for boundary pages; size variants (
lg,sm).
Panel.php
- Functionality: Card-based panel with distinct header, body, and footer sections.
- Features: Extends
Card; contextual background colors (success,warning,info,danger); sections only render when they contain content;addItem()inserts into the body.
Part.php
- Functionality: Base class for reusable component parts.
- Features: Provides
twBootstrapize()to apply Bootstrap styling to arbitrary HTML elements.
Progress.php
- Functionality: Bootstrap progress bar.
- Features: Contextual colors, striped and animated variants, custom min/max range, optional label.
Row.php
- Functionality: Bootstrap grid row.
- Features: Optional row-cols helper;
addColumn()shortcut creates aColinside the row.
Spinner.php
- Functionality: Bootstrap loading indicator.
- Features:
border(ring) andgrow(pulsing dot) types; all contextual colors; small size variant.
SubmitButton.php
- Functionality: Bootstrap-styled form submit button.
- Features: Supports all button variants.
Table.php
- Functionality: Create Bootstrap-styled tables.
- Features: Pass class via properties for striped, bordered, hoverable, small, and dark variants.
Tabs.php
- Functionality: Bootstrap tab component.
- Features: Static tabs via
addTab(); AJAX/dynamic content loading viaaddAjaxTab(); first tab active by default.
Toast.php
- Functionality: Bootstrap toast notification.
- Features: Header title, optional subtitle (e.g. timestamp), body content, autohide control.
WebPage.php
- Functionality: Full Bootstrap page scaffold.
- Features: Manages the HTML skeleton and automatically includes Bootstrap CSS/JS via CDN.
Installation
Or add to composer.json manually:
Then include the autoloader: