Download the PHP package abdogoda/laravel-notification-system without Composer
On this page you can find all versions of the php package abdogoda/laravel-notification-system. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abdogoda/laravel-notification-system
More information about abdogoda/laravel-notification-system
Files in abdogoda/laravel-notification-system
Package laravel-notification-system
Short Description Production-ready, highly extensible multi-channel notification package for Laravel by Abdulrhman Goda.
License MIT
Homepage https://abdogoda.github.io/AG/
Informations about the package laravel-notification-system
Laravel Notification System
A production-ready, highly extensible, multi-channel notification framework for Laravel applications developed by Abdulrhman Goda. Designed for single and multi-authentication, unlimited guards, customizable recipients, delivery tracking, localization, queued channels, and built-in Blade/Tailwind admin dashboard components.
Requirements
- PHP 8.2+
- Laravel 10, 11, 12, or 13
Features
- Multi-Channel Architecture: Native support for
Database,Mail,FCM Push Notifications,WhatsApp (BULQ API), and extensible custom channels. - Fluent Notification Builder: Clean API (
NotificationSystem::make()->title(...)->to(...)->send()). - Dynamic Recipient Resolution: Pass Eloquent models, collections, query builders, arrays, or guard names.
- Immutable DTO Layer: Strong type safety with
NotificationData,RecipientData,ChannelData,AttachmentData, andMailData. - Delivery Logging: Detailed logging table (
notification_logs) tracking status, attempts, response payload, exception trace, and duration. - Event-Driven Lifecycle: Event hooks (
NotificationCreating,NotificationSending,NotificationSent,NotificationFailed,ChannelSending,ChannelSent,ChannelFailed). - Queued & Async Delivery: Asynchronous queued delivery with configurable backoff, retry, and per-channel queue names.
- Recipient Localization: Automatic locale detection from recipient preferences with fallback.
- Admin Panel & Blade Components: Ready-to-use Blade components (
<x-notification-card>,<x-notification-table>,<x-notification-form>,<x-recipient-selector>,<x-channel-selector>,<x-statistics-widget>). - REST API Endpoints: Production API controllers for mobile and SPA clients.
Installation
1. Require via Composer
2. Publish Configuration & Migrations
3. Run Migrations
Quick Start
Basic Fluent Builder
Sending to Multiple Guards / Audiences
Synchronous Delivery (Skip Queue)
Queued with Delay
Email with Attachments
Configuration Reference
After publishing, the config file is at config/notification-system.php:
Default Channels
Locale
Queue Settings
Guards Setup
Map guard names to Eloquent models. These are resolved when you pass guard strings to ->to():
Channel Credentials
Delivery Logging
Custom Channels
You can register custom channels that implement ChannelInterface:
Register it in a service provider:
Then use it:
FCM Setup
To use FCM push notifications, implement FcmDriverInterface and configure it:
Register in a service provider:
Or set via config/env:
Events
The package dispatches events throughout the notification lifecycle. Listen to them in your EventServiceProvider:
| Event | Fired When |
|---|---|
NotificationCreating |
Before recipients are resolved |
NotificationSending |
Before delivery starts for a recipient |
NotificationSent |
After all channels deliver for a recipient |
NotificationFailed |
If the entire delivery process throws |
ChannelSending |
Before a specific channel sends |
ChannelSent |
After a specific channel succeeds |
ChannelFailed |
After a specific channel fails |
Example Listener
REST API Endpoints
All routes are configurable via notification-system.routes.api:
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/v1/notifications |
List paginated notifications |
GET |
/api/v1/notifications/unread-count |
Get unread count |
POST |
/api/v1/notifications/mark-all-read |
Mark all as read |
POST |
/api/v1/notifications/{id}/mark-read |
Mark one as read |
DELETE |
/api/v1/notifications/{id} |
Delete a notification |
DELETE |
/api/v1/notifications |
Clear all notifications |
Blade Components
Available components (all prefixed with notification-system):
Delivery Logging
Every send attempt is logged to the notification_logs table with:
notification_id— Links to the notificationchannel— Which channel was usedstatus—pending,sending,delivered, orfailedduration_ms— How long the channel tookresponse— JSON response from the channelexception— Error message if failed
Query Log Scopes
Testing
Or:
The test suite uses SQLite in-memory via Orchestra Testbench.
Credits & Author
Developed with ❤️ by Abdulrhman Goda.
- Website: https://abdogoda.github.io/AG/
Contributing
Please see CONTRIBUTING.md for details.
Security
If you discover a security vulnerability, please see SECURITY.md.
License
The MIT License (MIT). Copyright © 2026 Abdulrhman Goda. Please see License File for more information.
All versions of laravel-notification-system with dependencies
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/notifications Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
illuminate/queue Version ^10.0|^11.0|^12.0|^13.0
illuminate/view Version ^10.0|^11.0|^12.0|^13.0
guzzlehttp/guzzle Version ^7.5