PHPackages                             stonehilt/bootstrap - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. stonehilt/bootstrap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

stonehilt/bootstrap
===================

StoneHilt Component integration for Bootstrap CSS library

12.0.1(11mo ago)0167proprietaryPHPPHP ^8.4

Since Mar 14Pushed 8mo agoCompare

[ Source](https://github.com/StoneHilt/bootstrap)[ Packagist](https://packagist.org/packages/stonehilt/bootstrap)[ RSS](/packages/stonehilt-bootstrap/feed)WikiDiscussions main Synced 2w ago

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

StoneHilt Bootstrap
===================

[](#stonehilt-bootstrap)

Integration of the Bootstrap CSS library into Laravel components. The goal is to have each key function in the Bootstrap map to a laravel component that can be easily and consistently integrated into a project.

Everything done in these components can be performed with pure HTML in a blade, however these components allow for the better abstraction of logic without using a series custom blade partials.

Usage
=====

[](#usage)

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

[](#installation)

Include this library:

```
~ composer require stonehilt/bootstrap
```

Add the CSS and Javascript in your layout(s):

```

```

Most functionality is automatically injected with from the `StoneHiltBootstrapServiceProvider`, though there is a couple instances where the `ViewServiceProvider` will need to be replaced/edited. The simple route is to include `StoneHilt\Bootstrap\Providers\ViewServiceProvider::class` in the app config instead of `Illuminate\View\ViewServiceProvider::class` (or extend it if the Illuminate class is already replaced).

Customization
-------------

[](#customization)

All the views that back each component can be published to the app's resource directory for project customization.

```
~ php artisan vendor:publish --tag=bootstrap-views
```

To use local (ie non-cdn) assets, the configuration needs to be published and then updated. The assets themselves will need to be published if using composer based source files.

```
~ php artisan vendor:publish --tag=bootstrap-config
~ php artisan vendor:publish --tag=bootstrap-assets
```

Unless there's a security or performance reason, it is not recommended to use local assets and simply use the default settings to include the CDN provided copies.

To change the version of Bootstrap used, the config will need to be published.

Available Components
====================

[](#available-components)

Bootstrap's ComponentHTML TagAccordionx-bootstrap::component.accordionAlertx-bootstrap::component.alertBadgex-bootstrap::component.badgeBreadcrumbx-bootstrap::component.breadcrumbButtonx-bootstrap::component.buttonCardx-bootstrap::component.cardCarouselx-bootstrap::component.carouselDropdownx-bootstrap::component.dropdownList Groupx-bootstrap::component.list-groupNavx-bootstrap::component.navNavbarx-bootstrap::component.navbarOffcanvasx-bootstrap::component.offcanvasProgressx-bootstrap::component.progressTabsx-bootstrap::component.tabsFormHTML TagFormx-bootstrap::formCheckboxx-bootstrap::form.checkboxControlx-bootstrap::form.controlControl Groupx-bootstrap::form.control-groupRadiox-bootstrap::form.radioSelectx-bootstrap::form.selectTypographyHTML TagHeadingx-bootstrap::typography.headingTextx-bootstrap::typography.textGeneralHTML TagContainerx-bootstrap::containerColumnx-bootstrap::colRowx-bootstrap::rowImagex-bootstrap::imageFigurex-bootstrap::figureTablex-bootstrap::tableSupportHTML TagCSSx-bootstrap::cssJavascriptx-bootstrap::javascriptExamples
========

[](#examples)

See `tests/Feature/views` for additional examples of usages of the various parameters and layout approaches.

Bootstrap's Components
----------------------

[](#bootstraps-components)

### Accordion

[](#accordion)

```

        This is the body of block 1

        This is the body of block 2

```

### Badge

[](#badge)

```

    Example heading
    Danger

    Example heading
    Secondary

    Example heading
    Bottom Start

    Example heading
    Bottom End

```

### Breadcrumb

[](#breadcrumb)

```

```

### Dropdowns

[](#dropdowns)

```

    Item 1
    Item 2

    Item 3

```

Usage of slots for the items

```

    Item A
    Item B

```

### Navs &amp; Tabs

[](#navs--tabs)

Simple "nav" based navigation

```

    Item 1
    Item 2
    Item 3
    Item 3

```

Tabs styled navigation

```

    Item 1
    Item 2
    Item 3
    Item 3

```

Pills styled navigation

```

    Item 1
    Item 2
    Item 3
    Item 3

```

Dropdown as an item

```

    Dropdown Alpha

        Drop Item 1
        Drop Item 2

        Drop Item 3

    Dropdown Delta
    Dropdown Gamma

```

### Offcanvas

[](#offcanvas)

```

    {{ $content }}

```

All Options

```

    {{ $content }}

```

### Progress

[](#progress)

```

```

Form
----

[](#form)

### Form

[](#form-1)

Using method and action.

```

    Component Form Controls 2

```

Using named route

```

    Component Form Controls 2

```

General
-------

[](#general)

### Standard Grid

[](#standard-grid)

```

        First Column

        Middle Column

        Last Column

```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance56

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 98.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 ~33 days

Recently: every ~43 days

Total

18

Last Release

264d ago

Major Versions

10.0.13 → 12.0.02025-07-05

10.0.14 → 12.0.12025-07-17

PHP version history (2 changes)10.0.0PHP ^8.2

12.0.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b59cc708a3ea88f3d7eae5f5d51e4b3cd26984a71ae5bfbf2b0a3827aa0699d?d=identicon)[avastech](/maintainers/avastech)

---

Top Contributors

[![ahgreen](https://avatars.githubusercontent.com/u/5686621?v=4)](https://github.com/ahgreen "ahgreen (85 commits)")[![avastech](https://avatars.githubusercontent.com/u/23587318?v=4)](https://github.com/avastech "avastech (1 commits)")

---

Tags

laravelbootstrapStoneHilt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stonehilt-bootstrap/health.svg)

```
[![Health](https://phpackages.com/badges/stonehilt-bootstrap/health.svg)](https://phpackages.com/packages/stonehilt-bootstrap)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.5M916](/packages/statamic-cms)[laravel/nightwatch

The official Laravel Nightwatch package.

3588.7M31](/packages/laravel-nightwatch)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[creasi/laravel-nusa

A Laravel package that aim to provide Indonesia' Administrative Data

997.7k2](/packages/creasi-laravel-nusa)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1319.7k3](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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