PHPackages                             vitexsoftware/ease-twbootstrap5 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. vitexsoftware/ease-twbootstrap5

ActiveLibrary

vitexsoftware/ease-twbootstrap5
===============================

Set of Twitter Bootstrap 5 rendering objects

1.2.0(11mo ago)5564↓100%1[4 PRs](https://github.com/VitexSoftware/php-ease-twbootstrap5/pulls)MITPHPCI passing

Since Oct 6Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/VitexSoftware/php-ease-twbootstrap5)[ Packagist](https://packagist.org/packages/vitexsoftware/ease-twbootstrap5)[ RSS](/packages/vitexsoftware-ease-twbootstrap5/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (10)Used By (0)

php-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](https://github.com/VitexSoftware/php-ease-twbootstrap4.git).

Overview
--------

[](#overview)

This initial release includes a set of PHP classes designed to facilitate the creation of web components using Twitter Bootstrap 5. Each class corresponds to a specific Bootstrap component, providing an easy-to-use interface for integrating these components into your web applications.

Classes and Their Functionalities
---------------------------------

[](#classes-and-their-functionalities)

### Alert.php

[](#alertphp)

- **Functionality**: Create and manage Bootstrap alert messages.
- **Features**: Supports different alert types (success, danger, warning, info), dismissible alerts, and custom messages.

```
use Ease\TwBootstrap5\Alert;

$alert = new Alert('This is a success alert!', 'success');
echo $alert->draw();
```

### Badge.php

[](#badgephp)

- **Functionality**: Generate Bootstrap badges.
- **Features**: Supports different badge styles and contextual colors.

```
use Ease\TwBootstrap5\Badge;

$badge = new Badge('New', 'primary');
echo $badge->draw();
```

### Card.php

[](#cardphp)

- **Functionality**: Create Bootstrap card components.
- **Features**: Supports card headers, footers, images, and various content types.

```
use Ease\TwBootstrap5\Card;

$card = new Card('Card Title', 'This is some text within a card body.');
echo $card->draw();
```

### Col.php

[](#colphp)

- **Functionality**: Define column layouts using Bootstrap's grid system.
- **Features**: Supports different column sizes and responsive breakpoints.

### Container.php

[](#containerphp)

- **Functionality**: Create Bootstrap container elements.
- **Features**: Supports fluid and fixed-width containers.

```
use Ease\TwBootstrap5\Container;

$container = new Container('This is a container.');
echo $container->draw();
```

### Form.php

[](#formphp)

- **Functionality**: Generate Bootstrap forms.
- **Features**: Supports various form controls, validation states, and layout options.

```
use Ease\TwBootstrap5\Form;

$form = new Form('POST', '/submit');
$form->addItem(new Input('text', 'username', 'Username'));
echo $form->draw();
```

### FormGroup.php

[](#formgroupphp)

- **Functionality**: Group form controls with labels and help text.
- **Features**: Supports different form group layouts and validation states.

### InputGroup.php

[](#inputgroupphp)

- **Functionality**: Create input groups with prepend and append elements.
- **Features**: Supports various input types and custom elements.

### LinkButton.php

[](#linkbuttonphp)

- **Functionality**: Generate Bootstrap-styled link buttons.
- **Features**: Supports different button styles and sizes.

```
use Ease\TwBootstrap5\LinkButton;

$linkButton = new LinkButton('Click Me', 'https://example.com', 'primary');
echo $linkButton->draw();
```

### NavItemDropDown.php

[](#navitemdropdownphp)

- **Functionality**: Create dropdown items for navigation bars.
- **Features**: Supports nested dropdowns and various alignment options.

```
use Ease\TwBootstrap5\NavItemDropDown;

$dropdown = new NavItemDropDown('Dropdown', [
    'Action' => '#action',
    'Another action' => '#another-action',
    'Something else here' => '#something-else'
]);
echo $dropdown->draw();
```

### Navbar.php

[](#navbarphp)

- **Functionality**: Generate Bootstrap navigation bars.
- **Features**: Supports different navbar styles, responsive behaviors, and brand elements.

```
use Ease\TwBootstrap5\Navbar;

$navbar = new Navbar('My Website', [
    'Home' => '#home',
    'About' => '#about',
    'Contact' => '#contact'
]);
echo $navbar->draw();
```

### Panel.php

[](#panelphp)

- **Functionality**: Create Bootstrap panels.
- **Features**: Supports panel headers, footers, and various content types.

### Part.php

[](#partphp)

- **Functionality**: Base class for reusable component parts.
- **Features**: Provides common functionality for other components.

### Row.php

[](#rowphp)

- **Functionality**: Define row layouts using Bootstrap's grid system.
- **Features**: Supports different row configurations and responsive breakpoints.

```
use Ease\TwBootstrap5\Row;

$row = new Row([
    new Col('Column 1', 6),
    new Col('Column 2', 6)
]);
echo $row->draw();
```

### SubmitButton.php

[](#submitbuttonphp)

- **Functionality**: Generate Bootstrap-styled submit buttons.
- **Features**: Supports different button styles and sizes.

```
use Ease\TwBootstrap5\SubmitButton;

$submitButton = new SubmitButton('Submit', 'primary');
echo $submitButton->draw();
```

### Table.php

[](#tablephp)

- **Functionality**: Create Bootstrap-styled tables.
- **Features**: Supports striped, bordered, hoverable, and responsive tables.

```
use Ease\TwBootstrap5\Table;

$table = new Table([
    ['Header 1', 'Header 2'],
    ['Row 1 Col 1', 'Row 1 Col 2'],
    ['Row 2 Col 1', 'Row 2 Col 2']
]);
echo $table->draw();
```

### Tabs.php

[](#tabsphp)

- **Functionality**: Generate Bootstrap tab components.
- **Features**: Supports different tab styles and dynamic content loading.

### WebPage.php

[](#webpagephp)

- **Functionality**: Base class for creating web pages with Bootstrap components.
- **Features**: Provides common functionality for integrating various Bootstrap components into a web page.

```
use Ease\TwBootstrap5\WebPage;

$page = new WebPage('My Web Page');
$page->addItem(new Container('This is the main content.'));
echo $page->draw();
```

Conclusion
----------

[](#conclusion)

This release provides a comprehensive set of tools for integrating Bootstrap 5 components into your PHP applications, making it easier to create responsive and visually appealing web interfaces.

Installation
------------

[](#installation)

To install the library, you can use Composer. Run the following command in your project directory:

```
composer require vitexsoftware/php-ease-twbootstrap5
```

Alternatively, you can add the library to your `composer.json` file manually:

```
{
    "require": {
        "vitexsoftware/php-ease-twbootstrap5": "^0.1"
    }
}
```

Then, run:

```
composer install
```

After installation, you can include the autoload file in your PHP scripts to start using the library:

```
require 'vendor/autoload.php';
```

You are now ready to use the TwitterBootstrap5 classes in your EasePHP Framework projects.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance73

Regular maintenance activity

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~80 days

Total

4

Last Release

338d ago

Major Versions

0.1.0 → 1.0.02024-11-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/f24039b55245f141b108d0245b5821fe6cc4bb0585e36283f97301cd3aa792bc?d=identicon)[vitex](/maintainers/vitex)

---

Top Contributors

[![Vitexus](https://avatars.githubusercontent.com/u/2621130?v=4)](https://github.com/Vitexus "Vitexus (90 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (19 commits)")[![kirtapos](https://avatars.githubusercontent.com/u/96991944?v=4)](https://github.com/kirtapos "kirtapos (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vitexsoftware-ease-twbootstrap5/health.svg)

```
[![Health](https://phpackages.com/badges/vitexsoftware-ease-twbootstrap5/health.svg)](https://phpackages.com/packages/vitexsoftware-ease-twbootstrap5)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
