PHPackages                             maksimkurb/bootalert - 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. maksimkurb/bootalert

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

maksimkurb/bootalert
====================

This package will allow you to add system notifications for the user in queue from which they will be removed after display to the user.

215PHP

Since Jul 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/maksimkurb/bootalert)[ Packagist](https://packagist.org/packages/maksimkurb/bootalert)[ RSS](/packages/maksimkurb-bootalert/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

BootAlert
=========

[](#bootalert)

This package designed specially (but can be reconfigured) for Bootstrap 3 and Laravel 4 and will allow you to add system notifications for the user in queue from which they will be removed after display to the user.

Package installation:
---------------------

[](#package-installation)

Modify your composer.json to match this:

```
{
    "require": {
        ...
        "maksimkurb/bootalert": "dev-master"
    }
}
```

and run in terminal this command: `composer update`

Next, you should add these rows to your `config/app.php`

```
    ...
	'providers' => array(
	    ...
        'Maksimkurb\BootAlert\BootAlertServiceProvider',
    ),
    ...

	'aliases' => array(
	   ...
       'BootAlert' => 'Maksimkurb\BootAlert\BootAlert',
	),
	...
```

By default, this plugin already configured to use it with Twitter Bootstrap 3, but you can edit configuration as you like.

To publish config files run: `php artisan config:publish maksimkurb/bootalert`

Using
-----

[](#using)

### Add alerts to user session

[](#add-alerts-to-user-session)

To add new alert to user session run:

```
    BootAlert::add($type, $message, $dismissable=true);
```

Where $type - type of alert (for BS3 they are: success, info, warning, danger), see configuration Where $message - your message Where $dismissable - boolean, true = alert dismissable; false - alert static

Also you can add validators to BootAlerts:

```
    BootAlert::addValidator($type, $validator, $dismissable=true);
```

This function add all validator errors to user session and can be displayed after. For now, BootAlert couldn't use per-alert type - you can choose only one for all validator messages (or parse they with `BootAlert::add(...)` by hands)

### Display alerts to user

[](#display-alerts-to-user)

You can get HTML code with all alerts of user as follows:

```
BootAlert::display();
```

*NOTE*: This function return alerts only once, so after their displaying, they will removed from alerts array and you shouldn't care about old alerts removing.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2769ef7904e52d9ed8395eb621b5731e07410f20e8e67a24311ff07b05956a62?d=identicon)[maksimkurb](/maintainers/maksimkurb)

---

Top Contributors

[![maksimkurb](https://avatars.githubusercontent.com/u/1351924?v=4)](https://github.com/maksimkurb "maksimkurb (18 commits)")

### Embed Badge

![Health badge](/badges/maksimkurb-bootalert/health.svg)

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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