Download the PHP package luizfabianonogueira/sse-notify without Composer
On this page you can find all versions of the php package luizfabianonogueira/sse-notify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download luizfabianonogueira/sse-notify
More information about luizfabianonogueira/sse-notify
Files in luizfabianonogueira/sse-notify
Package sse-notify
Short Description Poderosa ferramenta para notificar o usuário de eventos importantes em tempo real
License LGPL-3.0-or-later
Informations about the package sse-notify
SSE-NOTIFY
Description
If you’re developing with Laravel and looking for an effective way to interact with your users in real time, your solution is here! With [Sse-Notify], you can:
💡 Real-Time Notifications
Leverage the power of SSE (Server-Sent Events) to effortlessly send notifications from the server to the client, ensuring a smooth, real-time user experience!
🔔 Multiple Notification Options
Choose from various styles and modes of notification:
- Traditional JavaScript Alerts
- Modern notifications with Bootstrap Notify
- Sleek messages with Bootstrap Toast
- Visually stunning pop-ups with SweetAlert2
- HTML and JavaScript Injection for dynamic content
🎯 Infinite Flexibility
With support for dynamic HTML and JavaScript injection, the possibilities are literally endless! Create unique and personalized interactions tailored to your project and user needs.
⚙️ Easy Integration
[Sse-Notify] is simple to integrate with your Laravel project. Just install the package and start harnessing the power of SSE communication to elevate your user notifications.
👉 Ready to transform how you interact with your users?
Try [Sse-Notify] and discover how easy it is to take your notifications to the next level!
Requirements
PHP 8.2 or higher \ Laravel 10.0 or higher \ User table with id uuid column \ Active authentication system \ Active uuid extension in database
Installation
After installation, register the service provider.\
In bootstrap/providers.php.
After that you must publish the migration and js file.
Attention: the sse.js file will be exported to public/assets/js/sse.js. \ If you use Vite or similar tools, configure js correctly to be loaded.
Execute the migration to create the table that will store the notifications.
Now we need to configure the communication channel.
In the view you chose to have the channel open, insert the following code.
Testing
To run a user test, simply access the following url
yourdomain.com/sse/generateFakeData/{userId}
Usage Example
..::|| javaScript alert() ||::..
..::|| SweetAlert2 ||::..
..::|| Bootstrap Notify ||::..
..::|| Bootstrap TOAST ||::..
..::|| INJECTION HTML ||::..
..::|| INJECTION SCRIPT ||::..
After saving, the system sends the notification to the target user. \ Each notification has a 3 seconds interval between them. \ If you don't have notifications, the next check is in 10 seconds.
License: LGPL-3.0-or-later
Contact & Support
📞 Phone: +5548991779088
✉️ Email: [email protected]
Support My Work
If you enjoyed this project and would like to support my work, any donation via Pix is greatly appreciated!
Feel free to donate using one of the following Pix keys:
💳 Email Pix Key: [email protected]
📱 Phone Pix Key: 48991779088
Thank you for your support!