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

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

wahyudedik/laravel-alert
========================

A beautiful and easy-to-use alert notification library for Laravel with Blade integration

00PHPCI failing

Since Sep 24Pushed 7mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Alert
=============

[](#laravel-alert)

A comprehensive Laravel package for managing alerts and notifications with support for multiple themes, animations, and real-time updates.

✨ Features
----------

[](#-features)

- **Multiple Alert Types** - Success, Error, Warning, Info
- **Blade Integration** - Components and Directives
- **Multiple Themes** - Bootstrap, Tailwind, Bulma
- **Animations** - Fade, Slide, Bounce, and more
- **Real-time Updates** - WebSocket and AJAX support
- **Database Storage** - Persistent alert storage
- **Cache Integration** - Redis and Cache support
- **REST API** - Full API support with authentication
- **Admin Panel** - Alert management interface
- **Performance Optimization** - High-performance features

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

[](#installation)

```
composer require wahyudedik/laravel-alert
```

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

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="Wahyudedik\LaravelAlert\AlertServiceProvider" --tag="laravel-alert-config"
```

Usage
-----

[](#usage)

### Using the Facade

[](#using-the-facade)

```
use Wahyudedik\LaravelAlert\Facades\Alert;

// Success alert
Alert::success('Operation completed successfully!');

// Error alert
Alert::error('Something went wrong!');

// Warning alert
Alert::warning('Please check your input.');

// Info alert
Alert::info('Welcome to our application!');

// Custom alert
Alert::add('custom', 'This is a custom alert!');
```

### Using Blade Components

[](#using-blade-components)

```

    Your changes have been saved!

```

### Using Blade Directives

[](#using-blade-directives)

```

@alert('info', 'Welcome to our application!')

@alerts

@alertIf($user->isNew(), 'success', 'Welcome to our platform!')
```

Configuration Options
---------------------

[](#configuration-options)

```
// config/laravel-alert.php
return [
    'default_theme' => 'bootstrap', // bootstrap, tailwind, bulma
    'auto_dismiss' => true,
    'dismiss_delay' => 5000, // milliseconds
    'animation' => 'fade', // fade, slide, bounce, none
    'position' => 'top-right', // top-right, top-left, bottom-right, bottom-left, top-center, bottom-center
    'max_alerts' => 5,
    'session_key' => 'laravel_alerts',
];
```

Themes
------

[](#themes)

### Bootstrap

[](#bootstrap)

```
Success message
Error message
Warning message
Info message
```

### Tailwind CSS

[](#tailwind-css)

```

    Success message

```

Advanced Usage
--------------

[](#advanced-usage)

### Custom Options

[](#custom-options)

```
Alert::success('Message', 'Title', [
    'dismissible' => true,
    'icon' => 'fas fa-check',
    'class' => 'custom-alert-class',
    'style' => 'border-left: 4px solid #28a745;'
]);
```

### Custom Themes

[](#custom-themes)

You can create custom themes by publishing the views:

```
php artisan vendor:publish --provider="Wahyudedik\LaravelAlert\AlertServiceProvider" --tag="laravel-alert-views"
```

Requirements
------------

[](#requirements)

- PHP 8.0+
- Laravel 9.0+
- Bootstrap 4/5 (for Bootstrap theme)
- Tailwind CSS (for Tailwind theme)

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) file for details.

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

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

📚 Documentation
---------------

[](#-documentation)

### 📖 Complete Documentation

[](#-complete-documentation)

For comprehensive documentation, visit our [documentation site](https://wahyudedik.github.io/LaravelAlert).

### 📁 Documentation Structure

[](#-documentation-structure)

```
docs/
├── README.md              # Main documentation index
├── installation.md        # Installation guide
├── api.md                 # API documentation
├── examples.md            # Code examples
├── contributing.md        # Contributing guide
├── changelog.md           # Version history
├── mkdocs.yml            # MkDocs configuration
├── package.json          # Node.js dependencies
├── requirements.txt       # Python dependencies
├── Dockerfile            # Docker configuration
├── docker-compose.yml    # Docker Compose configuration
├── Makefile              # Build automation
└── .gitignore            # Git ignore rules

```

### 🛠️ Documentation Development

[](#️-documentation-development)

The documentation is built using [MkDocs](https://www.mkdocs.org/) with the [Material theme](https://squidfunk.github.io/mkdocs-material/).

#### Local Development

[](#local-development)

```
# Navigate to docs directory
cd docs/

# Install dependencies
make install

# Start development server
make dev

# Build documentation
make build

# Deploy to GitHub Pages
make deploy
```

#### Docker Development

[](#docker-development)

```
# Start with Docker
make docker-dev

# Build with Docker
make docker-build

# Deploy with Docker
make docker-deploy
```

#### Available Commands

[](#available-commands)

```
make help          # Show all available commands
make dev           # Start development server
make build         # Build documentation
make deploy        # Deploy to GitHub Pages
make clean         # Clean build files
make lint          # Lint markdown files
make spell         # Check spelling
make test          # Run tests
make preview       # Preview built documentation
```

🎯 Key Features
--------------

[](#-key-features)

### Core Features

[](#core-features)

- ✅ **Multiple Alert Types** - Success, Error, Warning, Info
- ✅ **Blade Integration** - Components and Directives
- ✅ **Multiple Themes** - Bootstrap, Tailwind, Bulma
- ✅ **Animations** - Fade, Slide, Bounce, and more
- ✅ **Auto-dismiss** - Configurable auto-dismissal
- ✅ **Session Storage** - Built-in session management

### Advanced Features

[](#advanced-features)

- ✅ **Database Storage** - Persistent alert storage
- ✅ **Cache Integration** - Redis and Cache support
- ✅ **REST API** - Full API support
- ✅ **Real-time Updates** - WebSocket integration
- ✅ **Admin Panel** - Alert management interface
- ✅ **Performance Optimization** - High-performance features

### Integration Features

[](#integration-features)

- ✅ **Third-party Services** - Pusher, WebSocket, Email
- ✅ **Authentication** - Multiple auth methods
- ✅ **Rate Limiting** - Built-in rate limiting
- ✅ **CORS Support** - Cross-origin requests
- ✅ **Webhook Support** - External integrations

📡 API Usage
-----------

[](#-api-usage)

```
# Get all alerts
GET /api/v1/alerts

# Create alert
POST /api/v1/alerts
{
    "type": "success",
    "message": "Operation completed!",
    "title": "Success"
}

# Dismiss alert
POST /api/v1/alerts/{id}/dismiss
```

🧪 Testing
---------

[](#-testing)

```
# Run tests
composer test

# Run with coverage
composer test-coverage

# Run performance tests
composer test-performance
```

🤝 Contributing
--------------

[](#-contributing)

We welcome contributions! Please see our [Contributing Guide](docs/contributing.md) for details.

📄 License
---------

[](#-license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

🆘 Support
---------

[](#-support)

- [GitHub Issues](https://github.com/wahyudedik/LaravelAlert/issues)
- [Documentation](https://wahyudedik.github.io/LaravelAlert)
- [Discussions](https://github.com/wahyudedik/LaravelAlert/discussions)

📊 Statistics
------------

[](#-statistics)

- **Version**: 1.0.0
- **PHP Version**: 8.1+
- **Laravel Version**: 9.0+
- **License**: MIT
- **Stars**: ⭐ (GitHub)
- **Downloads**: 📦 (Packagist)

---

**Made with ❤️ by [Wahyudedik](https://github.com/wahyudedik)**

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance44

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

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

---

Top Contributors

[![wahyudedik](https://avatars.githubusercontent.com/u/25994632?v=4)](https://github.com/wahyudedik "wahyudedik (9 commits)")

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

PHPackages © 2026

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