PHPackages                             axyr/laravel-html-bootstrap-4 - 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. [Templating &amp; Views](/categories/templating)
4. /
5. axyr/laravel-html-bootstrap-4

ActiveLibrary[Templating &amp; Views](/categories/templating)

axyr/laravel-html-bootstrap-4
=============================

A fluent html builder for Bootstrap 4 components

v1.6.0(7y ago)027MITPHPPHP ^7.0

Since Nov 14Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/axyr/laravel-html-bootstrap-4)[ Packagist](https://packagist.org/packages/axyr/laravel-html-bootstrap-4)[ Docs](https://github.com/marvinlabs/laravel-html-bootstrap-4)[ RSS](/packages/axyr-laravel-html-bootstrap-4/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (24)Used By (0)

Bootstrap 4 fluent HTML builder
===============================

[](#bootstrap-4-fluent-html-builder)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cb63568b14653c3487bfd5b7d3eca2b90b15deb3c8d721da4097062edc55a5bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617276696e6c6162732f6c61726176656c2d68746d6c2d626f6f7473747261702d342e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marvinlabs/laravel-html-bootstrap-4)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/73c1a3782329b3e49d75f917a1f4dfaaf6643b397faa22a47d7d7625b4a12a34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617276696e6c6162732f6c61726176656c2d68746d6c2d626f6f7473747261702d342e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marvinlabs/laravel-html-bootstrap-4)

About
-----

[](#about)

This package is an extension on top of [Spatie laravel-html](https://github.com/spatie/laravel-html) package to easily produce Bootstrap 4 markup.

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

[](#installation)

You can install the package via composer:

```
composer require marvinlabs/laravel-html-bootstrap-4
```

If you are using Laravel 5.5, the service provider and facade will automatically be discovered.

On earlier versions, you need to do that manually. You must install the service provider:

```
// config/app.php
'providers' => [
    ...
    MarvinLabs\Html\Bootstrap\BootstrapServiceProvider::class,
    Appstract\BladeDirectives\BladeDirectivesServiceProvider::class, // Required if not already there
];
```

And optionally register an alias for the facade.

```
// config/app.php
'aliases' => [
    ...
    'BS' => MarvinLabs\Html\Bootstrap\Facades\Bootstrap::class,
];
```

Documentation
-------------

[](#documentation)

Documentation is still a work in progress. You are welcome to help document features if you want to contribute.

- [Documentation root](/docs)

Usage
-----

[](#usage)

Depending on the component, you will either need to call some methods or use Blade components.

### Blade components

[](#blade-components)

Components based on Blade can fully be overridden. You will need to publish the package views to `resources/views/vendor/bs` with the command:

```
php artisan vendor:publish --provider="MarvinLabs\Html\Bootstrap\BootstrapServiceProvider" --tag="views"
```

Translations
------------

[](#translations)

Translations can fully be overridden. You will need to publish the package language files to `resources/lang/vendor/bs` with the command:

```
php artisan vendor:publish --provider="MarvinLabs\Html\Bootstrap\BootstrapServiceProvider" --tag="lang"
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Adam Wathan](https://github.com/adamwathan) for the bootforms package which has been very helpful until it got dropped
- [Spatie agency](https://github.com/spatie) for the laravel-html package
- [Appstract team](https://github.com/appstract) for the laravel-blade-directives package and some BS4 blade components

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~9 days

Total

22

Last Release

2898d ago

Major Versions

v0.9.0 → v1.0.02018-04-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fcc5eb430262d4da52fd7a23b2af3cd126402a67a62e08707fd26bd8c3d2c3f?d=identicon)[axyr](/maintainers/axyr)

---

Top Contributors

[![vpratfr](https://avatars.githubusercontent.com/u/2526465?v=4)](https://github.com/vpratfr "vpratfr (145 commits)")[![axyr](https://avatars.githubusercontent.com/u/345155?v=4)](https://github.com/axyr "axyr (10 commits)")[![jyhsu2000](https://avatars.githubusercontent.com/u/6276648?v=4)](https://github.com/jyhsu2000 "jyhsu2000 (1 commits)")

---

Tags

htmlbootstrap 4marvinlabs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/axyr-laravel-html-bootstrap-4/health.svg)

```
[![Health](https://phpackages.com/badges/axyr-laravel-html-bootstrap-4/health.svg)](https://phpackages.com/packages/axyr-laravel-html-bootstrap-4)
```

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k34.7M186](/packages/phpoffice-phpword)[marvinlabs/laravel-html-bootstrap-4

A fluent html builder for Bootstrap 4 components

4219.8k3](/packages/marvinlabs-laravel-html-bootstrap-4)[twig/string-extra

A Twig extension for Symfony String

21946.0M133](/packages/twig-string-extra)[laravie/html

HTML and Form Builders for the Laravel Framework

36184.6k4](/packages/laravie-html)[osiemsiedem/laravel-autolink

A Laravel package for converting URLs in a given string of text into clickable links.

13126.3k](/packages/osiemsiedem-laravel-autolink)[vluzrmos/collective-html

LaravelCollective Html and Form builder for Lumen.

2523.9k](/packages/vluzrmos-collective-html)

PHPackages © 2026

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