PHPackages                             sentix/alert - 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. sentix/alert

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

sentix/alert
============

Laravel Alert Notification Plugin with configurable positions and colors

1.0.3(8mo ago)025MITPHPPHP ^8.0

Since Aug 21Pushed 8mo agoCompare

[ Source](https://github.com/sentixtech/notification)[ Packagist](https://packagist.org/packages/sentix/alert)[ RSS](/packages/sentix-alert/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Laravel Alert Notification Plugin
=================================

[](#laravel-alert-notification-plugin)

A comprehensive Laravel plugin for displaying beautiful, configurable alert notifications with support for multiple positions, colors, and animations.

Features
--------

[](#features)

- **Configurable Positions**: Top, bottom, center with custom offsets
- **Multiple Color Themes**: Success, error, warning, info, dark, light
- **Laravel Integration**: Blade directives, facades, helper functions
- **Auto-dismiss**: Configurable timeout with hover pause
- **Responsive Design**: Mobile-friendly notifications
- **Session Integration**: Automatic display of Laravel session messages
- **Validation Errors**: Built-in support for Laravel validation errors

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

[](#installation)

```
website: https://sentixtech.github.io/pluginAlert

```

1. **Install via Composer**:

```
composer require sentix/alert
```

2. **Install NPM Dependencies**:

```
npm install
```

2.3. **Add Provider**:

```
Alert\AlertNotificationServiceProvider::class
```

3. **Publish Configuration**:

```
php artisan vendor:publish --provider="Alert\AlertNotificationServiceProvider" --tag="config"
```

4. **Publish Assets**:

```
php artisan vendor:publish --provider="Alert\AlertNotificationServiceProvider" --tag="assets"
```

Usage
-----

[](#usage)

### Blade Directives

[](#blade-directives)

Add these directives to your master layout file:

```

    Your App
    @alertStyles

    @alertNotifications
    @alertScripts

```

### Helper Functions

[](#helper-functions)

```
// In your controllers
session()->flash('success','Welcome to sentixtech.com');
session()->flash('error','Welcome to sentixtech.com');
session()->flash('info','Welcome to sentixtech.com');
session()->flash('warning','Welcome to sentixtech.com');
```

### JavaScript Usage

[](#javascript-usage)

```
// Show alerts programmatically
notify("success", "Dynamic success message");
notify("error", "Dynamic error message", "Custom Title");

// Legacy support
notify(false, "Success message"); // false = success
notify(true, "Error message"); // true = error
```

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

[](#configuration)

Edit `config/alert-notification.php` to customize:

### Position Settings

[](#position-settings)

```
'position' => [
    'vertical' => 'bottom',   // top, bottom, center
    'horizontal' => 'right',  // left, right, center
    'offset' => [
        'top' => '20px',
        'bottom' => '20px',
        'left' => '20px',
        'right' => '20px',
    ]
],
```

### Color Customization

[](#color-customization)

```
'colors' => [
    'success' => [
        'background' => '#28a745',
        'text' => '#ffffff',
        'border' => '#1e7e34'
    ],
    // ... other colors
],
```

### Animation Settings

[](#animation-settings)

```
'animation' => [
    'duration' => '0.35s',
    'easing' => 'cubic-bezier(0.21, 1.02, 0.73, 1)',
    'auto_dismiss' => true,
    'dismiss_timeout' => 5000, // milliseconds
],
```

Available Alert Types
---------------------

[](#available-alert-types)

- `success` - Green success messages
- `error` - Red error messages
- `warning` - Yellow warning messages
- `info` - Blue informational messages
- `dark` - Dark themed messages
- `light` - Light themed messages

Laravel Session Integration
---------------------------

[](#laravel-session-integration)

The plugin automatically displays Laravel session messages:

```
// In your controller
return redirect()->back()->with('success', 'Data saved successfully!');
return redirect()->back()->with('error', 'Validation failed!');
return redirect()->back()->with('warning', 'Please review your input!');
return redirect()->back()->with('info', 'Additional information...');
```

Validation Errors
-----------------

[](#validation-errors)

Validation errors are automatically displayed:

```
// In your controller
$request->validate([
    'email' => 'required|email',
    'name' => 'required|min:3'
]);
// Validation errors will automatically show as notifications
```

Advanced Configuration
----------------------

[](#advanced-configuration)

### Custom Icons

[](#custom-icons)

You can customize icons in the configuration file by modifying the `icons` array.

### Progress Bar

[](#progress-bar)

Enable progress bar for auto-dismiss:

```
'enable_progress_bar' => true,
'progress_bar_height' => '4px',
```

### Sound Notifications

[](#sound-notifications)

```
'Coming Soon!!'
```

Browser Support
---------------

[](#browser-support)

- Chrome 60+
- Firefox 55+
- Safari 12+
- Edge 79+

License
-------

[](#license)

MIT License

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance60

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78f46d95ab25fd181bfa49148d0f1d9193dac8bc237fd951fb630fd32f64de8d?d=identicon)[Sentix](/maintainers/Sentix)

---

Top Contributors

[![sentixtech](https://avatars.githubusercontent.com/u/147980203?v=4)](https://github.com/sentixtech "sentixtech (20 commits)")

### Embed Badge

![Health badge](/badges/sentix-alert/health.svg)

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

###  Alternatives

[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.1M390](/packages/illuminate-mail)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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