PHPackages                             apility/laravel-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. apility/laravel-bootstrap

ActiveLibrary

apility/laravel-bootstrap
=========================

Bootstrap components for Laravel Blade

v1.0.9(3y ago)1154MITPHPPHP ^7.0|^8.0

Since Sep 12Pushed 3y agoCompare

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

READMEChangelog (10)Dependencies (2)Versions (11)Used By (0)

Bootstrap components for Laravel Blade
======================================

[](#bootstrap-components-for-laravel-blade)

[![Packagist](https://camo.githubusercontent.com/9e6dc9a31dac58a0e775a5bb7d11face315c1eb161ccd4159f3692e82ced97aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6170696c6974792f6c61726176656c2d626c616465)](https://camo.githubusercontent.com/9e6dc9a31dac58a0e775a5bb7d11face315c1eb161ccd4159f3692e82ced97aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6170696c6974792f6c61726176656c2d626c616465)[![Packagist package.json version](https://camo.githubusercontent.com/2d9f1d46e90d0dc518a6de0576ce391625d1d71397c2e13e74bb760445d4ed34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6170696c6974792f6c61726176656c2d626c616465)](https://camo.githubusercontent.com/2d9f1d46e90d0dc518a6de0576ce391625d1d71397c2e13e74bb760445d4ed34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6170696c6974792f6c61726176656c2d626c616465)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Customization](#customization)
- [Components](#components)
    - [Alert](#alert)
    - [AlertHeading](#alert-heading)
    - [Button](#button)
    - [Card](#card)
    - [CardHeader](#card-header)
    - [CardImage](#card-image)
    - [CardTitle](#card-title)
    - [Nav](#nav)
    - [Navbar](#navbar)
    - [NavbarBrand](#navbar-brand)
    - [NavDropdown](#nav-dropdown)
    - [NavLink](#nav-link)
    - [Search](#search)

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

[](#installation)

```
composer require apility/laravel-bootstrap
```

Configuration
-------------

[](#configuration)

To override the default configuration, you must first publish it

```
php artisan vendor:publish --provider="Bootstrap\Providers\BootstrapServiceProvider" --tag="config"
```

This will add a `bootstrap.php` file to your `config` directory.

The only supported option you can configure currently, is the 'prefix' property. This changes the names of the components. The default prefix is `bs`, if you change it to e.g. `bootstrap` you will have to use the provided components like this:

```
...
```

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

[](#customization)

To customize the provided component's views, you must first publish them

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

Components
----------

[](#components)

### Alert

[](#alert)

```

    Hello!

```

#### Attributes

[](#attributes)

NameTypeDefaultDescriptionvariantstring`primary`The color variant of the alert.dismissibleboolean`false`Whether the alert is dismissible.fadeboolean`true`Whether the alert should fade out.showboolean`true`Whether the alert should be visible.### AlertHeading

[](#alertheading)

```

    Hello!

```

### Button

[](#button)

```

    Hello!

```

If the `href` attribute is set, the button will be rendered as an `` element.

#### Attributes

[](#attributes-1)

NameTypeDefaultDescriptionvariantstring`primary`The color variant of the alert.typestring`null`Sets the button type when used as a regular button, e.g. `submit`hrefstring`null`Sets the href attribute, and makes the button into a linkoutlineboolean`false`Whether the alert should appear outlinedlargeboolean`false`Whether the alert should be largesmallboolean`false`Whether the alert should be smalldisabledboolean`false`Whether the alert is disabled### Card Header

[](#card-header)

```

    Card title!

```

### Card Image

[](#card-image)

```

```

#### Attributes

[](#attributes-2)

NameTypeDefaultDescriptionsrcstring`null`The image sourceimagearray`null`An associative array, or object containing 'src', 'title' and 'alt' propertiesplacementstring`'top'`The placement of the image, either `'top'` or `'bottom'`### Card title

[](#card-title)

```

    Card title!

```

### Card

[](#card)

```

    Card body text

```

#### Attributes

[](#attributes-3)

NameTypeDefaultDescriptionheaderstring`null`The header of the cardtitlestring`null`The title of the cardimagestring`null`Either an image source url, or an associate array or object that can be used as an Imagelinkarray`null`An associative array, or object containing 'href' and 'title' properties### Nav

[](#nav)

```

```

#### Attributes

[](#attributes-4)

NameTypeDefaultDescriptionlinksarray`[]`An array or collection of linksThe links can be passed either as a collection or a regular array. The items can be either `Bootstrap\Models\Link` instances, associative arrays, or standard objects. They will internally be transformed to `Bootstrap\Models\Link` instances.

NameTypeDefaultDescriptionurlstring`#`The link urltitlestring`''`The link titletargetstring`'_self'`The link targetactiveboolean`false`Whether the link is activedisabledboolean`false`Whether the link is disabledchildrenarray`[]`The link children, same format as above### Navbar

[](#navbar)

```

```

#### Attributes

[](#attributes-5)

NameTypeDefaultDescriptionlinksarray`[]`Links to render, [see Nav](#nav)variantstring`primary`The background color variant of the navbarlightboolean`false`Whether the navbar content is lightdarkboolean`false`Whether the navbar content is dark### NavbarBrand

[](#navbarbrand)

```

    Hello!

```

#### Attributes

[](#attributes-6)

NameTypeDefaultDescriptionhrefstring`#`The link of the brand### NavDropdown

[](#navdropdown)

This component is used internally when rendering Nav components, it extends [the NavLink component](#navlink).

```

    Home

```

### NavLink

[](#navlink)

This component is used internally when rendering Nav components.

```

    Home

```

### Search

[](#search)

Renders a search form for use in the Navbar. It will submit the query string as `query` to the given url using the given method.

```

```

#### Attributes

[](#attributes-7)

NameTypeDefaultDescriptionactionstring`?`The action of the formmethodstring`GET`The method of the formplaceholderstring`Search...`The placeholder of the search inputlabelstring`Search`The label of the search submit button

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% 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 ~0 days

Total

10

Last Release

1334d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/302a4d5539139f2957faf60d731a0fbb346a2a1419acf9ace282e91a3edd8099?d=identicon)[thomas-alrek](/maintainers/thomas-alrek)

---

Top Contributors

[![thomas-alrek](https://avatars.githubusercontent.com/u/14291825?v=4)](https://github.com/thomas-alrek "thomas-alrek (19 commits)")[![codekriss](https://avatars.githubusercontent.com/u/70336161?v=4)](https://github.com/codekriss "codekriss (1 commits)")

### Embed Badge

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

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

###  Alternatives

[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)[glhd/aire

Modern Laravel form builder. Remembers old input, retrieves error messages and comes with beautiful Tailwind-based markup out of the box.

545265.3k7](/packages/glhd-aire)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[konekt/html

HTML and Form Builders for the Laravel Framework

24403.2k5](/packages/konekt-html)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)[evanschleret/lara-mjml

Just a service provider for Spatie's MJML wrapper

1722.0k](/packages/evanschleret-lara-mjml)

PHPackages © 2026

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