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

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

fmohican/laravel-bootstrap-ui
=============================

Laravel UI utilities and presets, based on webpack

4.0.1(3y ago)015MITPHPPHP ^8.1

Since Feb 20Pushed 3y agoCompare

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

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

Fork of Laravel UI
==================

[](#fork-of-laravel-ui)

[![Total Downloads](https://camo.githubusercontent.com/11ddc09c8794c536be7bf938b6d989c4c84b34cd4cb1d39a4aefdca8cc68f560/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666d6f686963616e2f6c61726176656c2d626f6f7473747261702d7569)](https://packagist.org/packages/fmohican/laravel-bootstrap-ui)[![Latest Stable Version](https://camo.githubusercontent.com/0a30aa6362bedab713b14922669c7e3b418e52325303caf1b560064ea43f2a02/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666d6f686963616e2f6c61726176656c2d626f6f7473747261702d7569)](https://packagist.org/packages/fmohican/laravel-bootstrap-ui)[![License](https://camo.githubusercontent.com/650bf99e098ecc55305bfa2c8f420187ec1cbbf714dadd0886cf10c8e6846df1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f666d6f686963616e2f6c61726176656c2d626f6f7473747261702d7569)](https://packagist.org/packages/fmohican/laravel-bootstrap-ui)

Introduction
------------

[](#introduction)

While Laravel does not dictate which JavaScript or CSS pre-processors you use, it does provide a basic starting point using [Bootstrap](https://getbootstrap.com/) that will be helpful for many applications. By default, Laravel uses [NPM](https://www.npmjs.org/) to install both of these frontend packages.

> This legacy package is a very simple authentication scaffolding built on the Bootstrap CSS framework. While it continues to work with the latest version of Laravel, you should consider using [Laravel Breeze](https://github.com/laravel/breeze) for new projects. Or, for something more robust, consider [Laravel Jetstream](https://github.com/laravel/jetstream).

Official Documentation
----------------------

[](#official-documentation)

### Supported Versions

[](#supported-versions)

Only the latest major version of Laravel UI receives bug fixes. The table below lists compatible Laravel versions:

VersionLaravel Version[4.x](https://github.com/laravel/ui/tree/4.x)9.x, 10.x### Installation

[](#installation)

The Bootstrap and Vue scaffolding provided by Laravel is located in the `fmohican/laravel-bootstrap-ui` Composer package, which may be installed using Composer:

```
composer require fmohican/laravel-bootstrap-ui
```

Once the `fmohican/laravel-bootstrap-ui` package has been installed, you may install the frontend scaffolding using the `ui` Artisan command:

```
// Generate basic scaffolding...
php artisan ui bootstrap

// Generate login / registration scaffolding...
php artisan ui bootstrap --auth
```

#### CSS

[](#css)

[Laravel Mix](https://laravel.com/docs/mix) provides a clean, expressive API over compiling SASS or Less, which are extensions of plain CSS that add variables, mixins, and other powerful features that make working with CSS much more enjoyable. In this document, we will briefly discuss CSS compilation in general; however, you should consult the full [Laravel Mix documentation](https://laravel.com/docs/mix) for more information on compiling SASS or Less.

#### JavaScript

[](#javascript)

Laravel does not require you to use a specific JavaScript framework or library to build your applications. In fact, you don't have to use JavaScript at all. However, Laravel does include some basic scaffolding to make it easier to get started writing modern JavaScript using the [Vue](https://vuejs.org) library. Vue provides an expressive API for building robust JavaScript applications using components. As with CSS, we may use Laravel Mix to easily compile JavaScript components into a single, browser-ready JavaScript file.

### Writing CSS

[](#writing-css)

After installing the `laravel/ui` Composer package and [generating the frontend scaffolding](#introduction), Laravel's `package.json` file will include the `bootstrap` package to help you get started prototyping your application's frontend using Bootstrap. However, feel free to add or remove packages from the `package.json` file as needed for your own application. You are not required to use the Bootstrap framework to build your Laravel application - it is provided as a good starting point for those who choose to use it.

Before compiling your CSS, install your project's frontend dependencies using the [Node package manager (NPM)](https://www.npmjs.org):

```
npm install
```

Once the dependencies have been installed using `npm install`, you can compile your SASS files to plain CSS using [Laravel Mix](https://laravel.com/docs/mix#working-with-stylesheets). The `npm run dev` command will process the instructions in your `webpack.mix.js` file. Typically, your compiled CSS will be placed in the `public/css` directory:

```
npm run dev
```

The `webpack.mix.js` file included with Laravel's frontend scaffolding will compile the `resources/sass/app.scss` SASS file. This `app.scss` file imports a file of SASS variables and loads Bootstrap, which provides a good starting point for most applications. Feel free to customize the `app.scss` file however you wish or even use an entirely different pre-processor by [configuring Laravel Mix](https://laravel.com/docs/mix).

### Writing JavaScript

[](#writing-javascript)

All of the JavaScript dependencies required by your application can be found in the `package.json` file in the project's root directory. This file is similar to a `composer.json` file except it specifies JavaScript dependencies instead of PHP dependencies. You can install these dependencies using the [Node package manager (NPM)](https://www.npmjs.org):

```
npm install
```

> By default, the Laravel `package.json` file includes a few packages such as `lodash` and `axios` to help you get started building your JavaScript application. Feel free to add or remove from the `package.json` file as needed for your own application. Once the packages are installed, you can use the `npm run dev` command to [compile your assets](https://laravel.com/docs/mix). Webpack is a module bundler for modern JavaScript applications. When you run the `npm run dev` command, Webpack will execute the instructions in your `webpack.mix.js` file:

```
npm run dev
```

By default, the Laravel `webpack.mix.js` file compiles your SASS and the `resources/js/app.js` file. Within the `app.js` file you may register your Vue components or, if you prefer a different framework, configure your own JavaScript application. Your compiled JavaScript will typically be placed in the `public/js` directory.

> The `app.js` file will load the `resources/js/bootstrap.js` file which bootstraps and configures Vue, Axios, jQuery, and all other JavaScript dependencies. If you have additional JavaScript dependencies to configure, you may do so in this file.

### Adding Presets

[](#adding-presets)

Presets are "macroable", which allows you to add additional methods to the `UiCommand` class at runtime. For example, the following code adds a `nextjs` method to the `UiCommand` class. Typically, you should declare preset macros in a [service provider](https://laravel.com/docs/providers):

```
use Laravel\Ui\UiCommand;
UiCommand::macro('nextjs', function (UiCommand $command) {
    // Scaffold your frontend...
});
```

Then, you may call the new preset via the `ui` command:

```
php artisan ui nextjs
```

License
-------

[](#license)

laravel-bootstrap-ui is open-sourced software licensed under the [MIT license](LICENSE.md), as fork of laravel/ui.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

3

Last Release

1176d ago

### Community

Maintainers

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

---

Top Contributors

[![driesvints](https://avatars.githubusercontent.com/u/594614?v=4)](https://github.com/driesvints "driesvints (127 commits)")[![taylorotwell](https://avatars.githubusercontent.com/u/463230?v=4)](https://github.com/taylorotwell "taylorotwell (93 commits)")[![jessarcher](https://avatars.githubusercontent.com/u/4977161?v=4)](https://github.com/jessarcher "jessarcher (3 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (3 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (3 commits)")[![Quezler](https://avatars.githubusercontent.com/u/3179271?v=4)](https://github.com/Quezler "Quezler (2 commits)")[![roberto-aguilar](https://avatars.githubusercontent.com/u/5356595?v=4)](https://github.com/roberto-aguilar "roberto-aguilar (2 commits)")[![fmohican](https://avatars.githubusercontent.com/u/8583317?v=4)](https://github.com/fmohican "fmohican (2 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (2 commits)")[![franknystrom15](https://avatars.githubusercontent.com/u/69698261?v=4)](https://github.com/franknystrom15 "franknystrom15 (2 commits)")[![iamgergo](https://avatars.githubusercontent.com/u/6567179?v=4)](https://github.com/iamgergo "iamgergo (2 commits)")[![liamh101](https://avatars.githubusercontent.com/u/3386345?v=4)](https://github.com/liamh101 "liamh101 (2 commits)")[![proclame](https://avatars.githubusercontent.com/u/2464413?v=4)](https://github.com/proclame "proclame (2 commits)")[![PerryvanderMeer](https://avatars.githubusercontent.com/u/11609290?v=4)](https://github.com/PerryvanderMeer "PerryvanderMeer (1 commits)")[![PovilasKorop](https://avatars.githubusercontent.com/u/1510147?v=4)](https://github.com/PovilasKorop "PovilasKorop (1 commits)")[![ryanmortier](https://avatars.githubusercontent.com/u/2053960?v=4)](https://github.com/ryanmortier "ryanmortier (1 commits)")[![asherawelan](https://avatars.githubusercontent.com/u/5789330?v=4)](https://github.com/asherawelan "asherawelan (1 commits)")[![timacdonald](https://avatars.githubusercontent.com/u/24803032?v=4)](https://github.com/timacdonald "timacdonald (1 commits)")[![ashkanfekridev](https://avatars.githubusercontent.com/u/31134156?v=4)](https://github.com/ashkanfekridev "ashkanfekridev (1 commits)")[![balping](https://avatars.githubusercontent.com/u/5840038?v=4)](https://github.com/balping "balping (1 commits)")

---

Tags

laraveluiwebpack

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

3.0k31.3M148](/packages/laravel-breeze)[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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