stellarsecurity / notification-laravel
Laravel client for Stellar Notification API
Package info
github.com/StellarSecurity-Packages/stellarsecurity-notification-laravel
pkg:composer/stellarsecurity/notification-laravel
v1.0.0
2025-12-26 10:17 UTC
Requires
- php: ^8.2
This package is not auto-updated.
Last update: 2026-02-21 09:19:57 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) );