PHPackages                             simtabi/larabell - 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. simtabi/larabell

ActiveLibrary

simtabi/larabell
================

Sweetalert and Toaster notifications for Laravel livewire with support for tailwind and bootstrap

017PHP

Since Mar 13Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![banner](.github/assets/banner.png?raw=true)](.github/assets/banner.png?raw=true)

Larabell
=========

[](#larabell--)

A Laravel Livewire library to help you integrate SweetAlert and Toasts on yor applications.

- [Installation](#installation)
- [How to use](#how-to-use)
- [Sweetalert](#sweetalert)
- [Toast](#toast)
- [Available configuration](#available-configuration)

[Installation](https://packagist.org/packages/simtabi/larabell)
---------------------------------------------------------------

[](#installation)

`composer require simtabi/larabell`

How to use
----------

[](#how-to-use)

### 1. Add `LarabellServiceProvider` in `config/app.php`

[](#1-add-larabellserviceprovider-in-configappphp-)

```
    ...
    \Simtabi\Larabell\LarabellServiceProvider::class
    ...
```

### 2. Include javascript

[](#2-include-javascript-)

```
    ...
    // place this directive in the header
    @larabellCss

    // no need to call this, as it has already been called when you call @larabellScripts
    @larabellInit
    ...
```

### 3. Extra config file

[](#3-extra-config-file-)

Publish the configs: `php artisan vendor:publish --tag=larabell:assets`. Publish the configs: `php artisan vendor:publish --tag=larabell:config`. Publish the configs: `php artisan vendor:publish --tag=larabell:views`.

> See [available configuration](#available-configuration)

---

Building toasts and sweetalerts
-------------------------------

[](#building-toasts-and-sweetalerts)

To make it easy to build toasts and sweetalerts, we have implemented chained methods to help you with building

Sweetalert
----------

[](#sweetalert)

In your component add `Toast` trait. Then call `toast` method whenever you want.

```
use Simtabi\Larabell\HasLarabell;
use Livewire\Component;

class MyComponent extends Component
{
    use HasLarabell;

    public function save() {
        $this->fireSwalNotification();
    }

}
```

**sweetalert parameters:**

- title
- [icon](https://sweetalert2.github.io/#icons): success, error, warning, info, question - default is **info**
- timeout: in milliseconds, default is 5000
-

---

Toast
-----

[](#toast)

This is the normal sweetalert [modal](https://sweetalert2.github.io/#examples). In your component add `Fire` trait. Then call `fire` method whenever you want.

```
use Simtabi\Larabell\HasLarabell;
use Livewire\Component;

class MyComponent extends Component
{
    use HasLarabell;

    public function save() {
        $this->fireToastNotification();
    }

}
```

**toast parameters:**

Refer to the documentation online at:

---

### Credits

[](#credits)

- [Imani Manyara](https://github.com/imanimanyara)
- [Easter Mukora](https://github.com/eastermukora)
-
-
-
- [All Contributors](../../contributors)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

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/e606811f3653a5a5a2a0bc39e2cfd2d52436e7f73da3e416dd13284c7ac87f0a?d=identicon)[simtabi](/maintainers/simtabi)

### Embed Badge

![Health badge](/badges/simtabi-larabell/health.svg)

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

PHPackages © 2026

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