PHPackages                             manuelgeek/laravel-btoast - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. manuelgeek/laravel-btoast

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

manuelgeek/laravel-btoast
=========================

A bootstrap 4 toast wrapper for Laravel

v1.3(6y ago)2381MITPHP

Since Aug 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/manuelgeek/laravel-btoast)[ Packagist](https://packagist.org/packages/manuelgeek/laravel-btoast)[ Docs](https://github.com/manuelgeek/laravel-btoast)[ RSS](/packages/manuelgeek-laravel-btoast/feed)WikiDiscussions master Synced yesterday

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

laravel-btoast
==============

[](#laravel-btoast)

[![Latest Version on Packagist](https://camo.githubusercontent.com/52c898c5d2ce258857f3b3b7f9748780124f03227e9b4e68601de4ad920da1b3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616e75656c6765656b2f6c61726176656c2d62746f6173742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/manuelgeek/laravel-btoast)[![Total Downloads](https://camo.githubusercontent.com/3dda9ccd92a5af91c23c7cd010dbd7a6d5d6dd3bcd4149568cd820d383ce4120/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616e75656c6765656b2f6c61726176656c2d62746f6173742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/manuelgeek/laravel-btoast)[![Build Status](https://camo.githubusercontent.com/bafdb5680975aadf65a6cea86603c751fd5b066b572e73e1ed29d85d01146360/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d616e75656c6765656b2f6c61726176656c2d62746f6173742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/manuelgeek/laravel-btoast)[![StyleCI](https://camo.githubusercontent.com/68c3e813de087130acf727c4655ad78e84564a10f642aa2e4b3d6e21c63102f8/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3230353432343933312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/12345678)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list. [![IMG](image.png)](image.png)

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

[](#installation)

**1.** Via Composer

```
composer require manuelgeek/laravel-btoast
```

**2.** *Optional, below Laravel 5.5*: Add `'Manuelgeek\LaravelBtoast\BToastServiceProvider'` to `providers` in `config/app.php`, and add `'BToast' => 'Manuelgeek\LaravelBtoast\Facades\BToast'` to `aliases` in `config/app.php`.

```
// config/app.php
'providers' => array(
  // ...
  'Manuelgeek\LaravelBtoast\BToastServiceProvider',
),
// ...
'aliases' => array(
  // ...
  'BToast' => 'Manuelgeek\LaravelBtoast\Facades\BToast',
),
```

**3.** Include `@include('btoast::messages')`in your layout template.

**4.** *Optional*: Run `php artisan vendor:publish --provider="Manuelgeek\LaravelBtoast\BToastServiceProvider" --tag="config"` to publish the config file.

**5.** *Optional*: Modify the published configuration file located at `config/laravel-btoast.php` to your preference.

**6.** *Optional*: Run `php artisan vendor:publish --provider="Manuelgeek\LaravelBtoast\BToastServiceProvider" --tag="views"` to publish the views.

**7.** *Optional*: Modify the published views located at `resources/views/vendor/btoast` to your preference.

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

[](#configuration)

Open `config/laravel-btoast.php` to adjust package configuration. If this file doesn't exist, run `php artisan vendor:publish --provider="Manuelgeek\LaravelBtoast\BToastServiceProvider" --tag="config"` to create the default configuration file.

```
return [
    'animation' => false,

    'autohide' => true,

    'delay' => 4000,

    'position' => 'top-right', // top-left, bottom-right, bottom-left, center,bottom-center, top-center

];
```

Usage
-----

[](#usage)

Use the BToast facade (`BToast::`) or the helper function (`btoast()->`) to access the methods in this package. You can also chain multiple messages together using method chaining: `btoast()->success('test')->info('user')`. The `title` and `subtitle` arguments is optional.

#### Message

[](#message)

```
BToast::message('message', 'level', 'title');
toast()->message('message', 'level', 'title');
toast('message', 'title');
```

Add a toast to the session. Using `btoast('message')` will use the default level.

Levels include `info`, `success`, `error`, `warning`, `dark`, `light`, `secondary`

#### Info

[](#info)

```
BToast::info('message', 'title', 'subtitle');
btoast()->info('message', 'title', 'subtitle');
```

#### Success

[](#success)

```
BToast::success('message', 'title', 'subtitle');
btoast()->success('message', 'title', 'subtitle');
```

#### Error

[](#error)

```
BToast::error('message', 'title', 'subtitle');
btoast()->error('message', 'title', 'subtitle');
```

#### Warning

[](#warning)

```
BToast::warning('message', 'title', 'subtitle');
btoast()->warning('message', 'title', 'subtitle');
```

#### Light

[](#light)

```
BToast::light('message', 'title', 'subtitle');
btoast()->light('message', 'title', 'subtitle');
```

#### Dark

[](#dark)

```
BToast::dark('message', 'title', 'subtitle');
btoast()->dark('message', 'title', 'subtitle');
```

#### Secondary

[](#secondary)

```
BToast::secondary('message', 'title', 'subtitle');
btoast()->secondary('message', 'title', 'subtitle');
```

#### Clear

[](#clear)

```
BToast::clear();
btoast()->clear();
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [ManuEl Geek](https://github.com/manuelgeek)

[![](https://camo.githubusercontent.com/d1e7cd46bd17e9501d3d80b5f5910e12a55d421b639f36f960565526daea07d1/68747470733a2f2f617070736c61622e636f2e6b652f6173736574732f696d672f6c6f676f2e706e67)](https://appslab.co.ke)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~31 days

Total

4

Last Release

2353d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8266f8b6edf450366c1fd0dcd4f0b7c02bd136fd6a979031c1871f46c035b6a0?d=identicon)[manuelgeek](/maintainers/manuelgeek)

---

Top Contributors

[![manuelgeek](https://avatars.githubusercontent.com/u/23236306?v=4)](https://github.com/manuelgeek "manuelgeek (23 commits)")

---

Tags

bootstraplaravelnotificationsphptoastlaravelnotificationbootstraptoastlaravel-btoast

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/manuelgeek-laravel-btoast/health.svg)

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[brian2694/laravel-toastr

toastr.js for Laravel

136649.4k5](/packages/brian2694-laravel-toastr)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)

PHPackages © 2026

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