opscale-co / notification-center
Notification Center
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/opscale-co/notification-center
Requires
- php: ^8.2
- jenssegers/agent: ^2.6
- laravel-notification-channels/microsoft-teams: ^2.1
- laravel-notification-channels/twilio: ^4.1
- laravel-notification-channels/webpush: ^10.4
- laravel/slack-notification-channel: ^3.7
- opscale-co/actions: ^1.0
- opscale-co/nova-dynamic-resources: ^1.1
- opscale-co/nova-package-tools: ^1.0
- theriddleofenigma/laravel-model-validation: ^1.6
Requires (Dev)
- laravel/nova: ^5.4
- laravel/nova-devtool: ^1.0
- phpunit/phpunit: ^10.5
- tightenco/duster: ^2.7
README
At Opscale, we’re passionate about contributing to the open-source community by providing solutions that help businesses scale efficiently. If you’ve found our tools helpful, here are a few ways you can show your support:
⭐ Star this repository to help others discover our work and be part of our growing community. Every star makes a difference!
💬 Share your experience by leaving a review on Trustpilot or sharing your thoughts on social media. Your feedback helps us improve and grow!
📧 Send us feedback on what we can improve at feedback@opscale.co. We value your input to make our tools even better for everyone.
🙏 Get involved by actively contributing to our open-source repositories. Your participation benefits the entire community and helps push the boundaries of what’s possible.
💼 Hire us if you need custom dashboards, admin panels, internal tools or MVPs tailored to your business. With our expertise, we can help you systematize operations or enhance your existing product. Contact us at hire@opscale.co to discuss your project needs.
Thanks for helping Opscale continue to scale! 🚀
Description
Make sure your users get notified. Notification Center for Laravel Nova gives you multi-channel delivery strategies with automatic channel escalation, smart retries, and advanced open/action tracking — so no message goes unnoticed.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require opscale-co/notification-center
Next up, you must register the tool with Nova. This is typically done in the tools method of the NovaServiceProvider.
// in app/Providers/NovaServiceProvider.php // ... public function tools() { return [ // ... new \Opscale\NotificationCenter\Tool(), ]; }
Usage
Publish the configuration and run the migrations:
php artisan notification-center:install
Configuration
The configuration file config/notification-center.php is organized around four features:
Templates
Notifications use templates from Nova Dynamic Resources to define their fields. Refer to the composition example for setting up templates.
Orchestration
Define delivery strategies per notification type (marketing, transactional, system, alert, reminder). Each strategy configures an ordered list of channels to attempt (e.g., ['webpush', 'whatsapp', 'sms']) with automatic channel escalation — if a channel times out, the next one in the list is attempted. Map channel identifiers to notification classes in the messages config to control how each channel renders its content.
Deliverability
Fine-tune when and how notifications reach your users. Configure time windows (allowed days and hours), retry intervals with escalating delays, max attempts per channel, and channel timeout thresholds. The scheduler re-dispatches strategies hourly for all published, non-expired notifications. Web push requires HTTPS since service workers only work in secure contexts. For WhatsApp, set your Twilio Content Template SID via the TWILIO_WHATSAPP_CONTENT_SID environment variable.
Segmentation
Target the right users with audiences. Create static audiences with manually curated profiles, dynamic audiences that resolve membership at query time based on criteria rules, or segments as named reusable cohorts based on shared profile attributes. Attach one or more audiences to a notification when publishing.
In-App Notifications
Three built-in channels deliver notifications directly inside your application:
- Nova: Sends notifications through Laravel Nova's native notification bell. Users receive real-time alerts within the Nova admin panel.
- Card: Renders notifications as visual cards on the Notifications Dashboard, a dedicated Nova dashboard where users can browse and manage their card notifications.
- Web Push: Delivers browser push notifications via service workers. Requires HTTPS — service workers are only available in secure contexts. Make sure your application is served over HTTPS in all environments where web push is enabled.
Tracking
Every delivery generates unique open and action slugs for built-in tracking. Tracking routes are registered automatically. Enable Google Analytics integration by setting your GA4 Measurement ID via the GOOGLE_ANALYTICS_ID environment variable.
Testing
npm run test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email development@opscale.co instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
