PHPackages                             laravelnews/laravel-twbs4 - 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. laravelnews/laravel-twbs4

AbandonedArchivedLibrary

laravelnews/laravel-twbs4
=========================

Laravel 5 frontend preset for Twitter Bootstrap 4

1.3.2(8y ago)23977.1k↓50%17MITHTML

Since Nov 7Pushed 7y ago11 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

Laravel 5.5 Frontend Preset for Boostrap 4
==========================================

[](#laravel-55-frontend-preset-for-boostrap-4)

**Note: Laravel 5.6 includes Bootstrap 4, this preset is only needed for Laravel &lt;= Laravel 5.5 LTS**

If you are upgrading a Laravel &lt;= 5.5 application, remove this preset (`laravelnews/laravel-twbs4`) from your `composer.json` file. Laravel 5.6 includes Bootstrap 4, and this preset isn't necessary.

[ ![](/screenshots/bootstrap-4-preset.png)](https://laravel-news.com/bootstrap-4-laravel-preset/)A Laravel frontend preset for [Bootstrap 4](http://getbootstrap.com/), the latest version of Bootstrap.

Current version is the stable release of `^4.0.0`. To learn more about updating to the latest major release of Bootstrap, read the [Migrating to v4](https://getbootstrap.com/docs/4.0/migration/) documentation.

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

[](#installation)

You can install this package via composer:

```
composer require laravelnews/laravel-twbs4
```

The package will automatically register it's service provider.

Install the basic preset to only update the CSS and JavaScript files:

```
php artisan preset bootstrap4
```

Or if you want to install everything, including auth views:

```
php artisan preset bootstrap4-auth
```

Next, update NPM packages and build the CSS/JavaScript:

```
yarn && yarn dev
```

Or via NPM:

```
npm install && npm run dev
```

**Important**: Make sure you have a backup of your code. The presets update `package.json`, and replace views, CSS, and JavaScript.

### jQuery Slim

[](#jquery-slim)

Bootstrap's [download](https://getbootstrap.com/docs/4.0/getting-started/download/) page includes jQuery slim. If you need `$.ajax`, effects, and deprecated methods, you can change the following line in `resources/assets/js/boostrap.js` to use the full jQuery installation:

```
window.$ = window.jQuery = require('jquery/dist/jquery.slim');
```

With full jQuery:

```
// Full jQuery
window.$ = window.jQuery = require('jquery');
```

### Variables

[](#variables)

The Bootstrap 4 presets include the same familiar `resources/assets/scss/_variables.scss` file, with some updated values to match Bootstrap 4 variable changes. This preset looks similar to the current `3.x` version that ships with Laravel, but isn't identical.

Here are the variables ported over thus far:

```
// Body
$body-bg: #fff;

// Borders
$laravel-border-color: darken($body-bg, 10%);
$list-group-border-color: $laravel-border-color;

$card-border-color: $laravel-border-color;

// Brands
$primary: #3097D1;
$info: #8eb4cb;
$success: #2ab27b;
$warning: #cbb956;
$danger: #bf5329;

// Typography
$font-family-sans-serif: "Raleway", sans-serif;
$font-size-base: .875rem; // 14px
$line-height-base: 1.6;
$text-color: #636b6f;

// Inputs
$input-border-color: lighten($text-color, 40%);
$input-placeholder-color: lighten($text-color, 30%);
```

Screenshots
-----------

[](#screenshots)

[![Login](/screenshots/bootstrap-4-login.png)](/screenshots/bootstrap-4-login.png)

[![Register](/screenshots/bootstrap-4-register.png)](/screenshots/bootstrap-4-register.png)

[![Register](/screenshots/bootstrap-4-validation.png)](/screenshots/bootstrap-4-validation.png)

License
-------

[](#license)

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

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 82.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

11

Last Release

3015d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/4cfea2afd961efe7094d821dd2daa8f0d50b69f70ced6282047d55f12f18f884?d=identicon)[laravelnews](/maintainers/laravelnews)

---

Top Contributors

[![paulredmond](https://avatars.githubusercontent.com/u/177773?v=4)](https://github.com/paulredmond "paulredmond (34 commits)")[![mattdfloyd](https://avatars.githubusercontent.com/u/185187?v=4)](https://github.com/mattdfloyd "mattdfloyd (5 commits)")[![austintoddj](https://avatars.githubusercontent.com/u/8037011?v=4)](https://github.com/austintoddj "austintoddj (1 commits)")[![bullenb](https://avatars.githubusercontent.com/u/66941?v=4)](https://github.com/bullenb "bullenb (1 commits)")

---

Tags

bootstrap4laravelphp

### Embed Badge

![Health badge](/badges/laravelnews-laravel-twbs4/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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