PHPackages                             lagdo/ui-builder-bootstrap4 - 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. [Framework](/categories/framework)
4. /
5. lagdo/ui-builder-bootstrap4

ActiveLibrary[Framework](/categories/framework)

lagdo/ui-builder-bootstrap4
===========================

UI Builder extensions for the Bootstrap 4 framework.

v0.5.0(4mo ago)018MITPHPPHP &gt;=8.0

Since Aug 18Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/lagdo/ui-builder-bootstrap4)[ Packagist](https://packagist.org/packages/lagdo/ui-builder-bootstrap4)[ Docs](https://github.com/lagdo/ui-builder-bootstrap)[ RSS](/packages/lagdo-ui-builder-bootstrap4/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e2ad71dc02f5e745aa45978ac3c7b3e9d9c787acfa688da43d37b53b5dc8bc52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6167646f2f75692d6275696c6465722d626f6f747374726170342f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/lagdo/ui-builder-bootstrap4/?branch=main)[![StyleCI](https://camo.githubusercontent.com/b1262bdaaa582df2f3630f8621370e88aea3609a6e0f08c83199e69bdfc86fc3/68747470733a2f2f7374796c6563692e696f2f7265706f732f3434393438303131342f736869656c643f6272616e63683d6d61696e)](https://styleci.io/repos/449480114)

[![Latest Stable Version](https://camo.githubusercontent.com/a0e311389a5524148575ff62dd0d3c843dfbe848472b5e200e65b92336cbe586/68747470733a2f2f706f7365722e707567782e6f72672f6c6167646f2f75692d6275696c6465722d626f6f747374726170342f762f737461626c65)](https://packagist.org/packages/lagdo/ui-builder-bootstrap4)[![Total Downloads](https://camo.githubusercontent.com/2c625b87d7fc501e745f155995153e92505542a4974cfb60229e1b23131d343c/68747470733a2f2f706f7365722e707567782e6f72672f6c6167646f2f75692d6275696c6465722d626f6f747374726170342f646f776e6c6f616473)](https://packagist.org/packages/lagdo/ui-builder-bootstrap4)[![License](https://camo.githubusercontent.com/b39abb0601a011f155c5ee653ee024d87457ea5a1882d0e4d3bfeee0ab708160/68747470733a2f2f706f7365722e707567782e6f72672f6c6167646f2f75692d6275696c6465722d626f6f747374726170342f6c6963656e7365)](https://packagist.org/packages/lagdo/ui-builder-bootstrap4)

Bootstrap 4 extension for the HTML UI builder
=============================================

[](#bootstrap-4-extension-for-the-html-ui-builder)

This package extends the [HTML UI builder](https://github.com/lagdo/ui-builder) and implements functions to create UI components for Bootstrap 4.

### Usage

[](#usage)

See the [HTML UI builder](https://github.com/lagdo/ui-builder) documentation.

Depending on the version of Bootstrap, a different class instance must provided where the `Lagdo\UiBuilder\BuilderInterface` is required.

For example, let say this `View` class is used to create HTML code.

```
use Lagdo\UiBuilder\BuilderInterface;

class View
{
    /**
     * @var BuilderInterface
     */
    protected $uiBuilder;

    /**
     * @param BuilderInterface
     */
    public function __construct(BuilderInterface $uiBuilder)
    {
        $this->uiBuilder = $uiBuilder;
    }
}
```

With the following example, the `View` class will generate HTML code for Bootstrap 4.

```
use Lagdo\UiBuilder\Bootstrap4\Builder;

$view = new View(new Builder());
```

### Contributing

[](#contributing)

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

### License

[](#license)

Distributed under the MIT License. See `LICENSE.txt` for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance77

Regular maintenance activity

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~28 days

Recently: every ~2 days

Total

6

Last Release

124d ago

### Community

Maintainers

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

---

Top Contributors

[![feuzeu](https://avatars.githubusercontent.com/u/15174329?v=4)](https://github.com/feuzeu "feuzeu (43 commits)")

---

Tags

htmlbootstrapUI Builder

### Embed Badge

![Health badge](/badges/lagdo-ui-builder-bootstrap4/health.svg)

```
[![Health](https://phpackages.com/badges/lagdo-ui-builder-bootstrap4/health.svg)](https://phpackages.com/packages/lagdo-ui-builder-bootstrap4)
```

###  Alternatives

[htmlmin/htmlmin

HTMLMin Is A Simple HTML Minifier For Laravel 5

1.0k1.9M9](/packages/htmlmin-htmlmin)[yiisoft/yii2-bootstrap

The Twitter Bootstrap extension for the Yii framework

19819.6M1.0k](/packages/yiisoft-yii2-bootstrap)[friendsofcake/bootstrap-ui

Bootstrap front-end framework support for CakePHP

3492.1M32](/packages/friendsofcake-bootstrap-ui)[yiisoft/yii2-bootstrap4

The Twitter Bootstrap extension for the Yii framework

2183.3M183](/packages/yiisoft-yii2-bootstrap4)[slywalker/boost_cake

BoostCake is a plugin for CakePHP using Bootstrap

277511.0k1](/packages/slywalker-boost-cake)[yiisoft/yii2-bootstrap5

The Twitter Bootstrap v5 extension for the Yii framework

661.4M121](/packages/yiisoft-yii2-bootstrap5)

PHPackages © 2026

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