stellarsecurity / notification-laravel
Laravel client for Stellar Notification API
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/stellarsecurity/notification-laravel
Requires
- php: ^8.2
This package is not auto-updated.
Last update: 2025-12-27 08:43:52 UTC
README
A lightweight Laravel package for sending events to the Stellar Notification API.
Install
composer require stellarsecurity/notification-laravel
Publish config
php artisan vendor:publish --tag=stellar-notifications-config
Configure
In your .env:
STELLAR_NOTIFICATION_API=https://your-notifications-api.example STELLAR_NOTIFICATIONS_BASIC_USERNAME=your-basic-username STELLAR_NOTIFICATIONS_BASIC_PASSWORD=your-basic-password STELLAR_NOTIFICATION_TIMEOUT=5
Usage
use StellarSecurity\Notifications\DTO\NotificationEvent; use Notification; Notification::send( NotificationEvent::make('welcome') ->product('stellar-antivirus') ->email($user->email) ->userRef((string) $user->id) ->payload(['app_name' => 'Stellar Antivirus']) ->idempotencyKey('welcome-'.$user->id) );