stellarsecurity/notification-laravel
最新稳定版本:v1.0.0
Composer 安装命令:
composer require stellarsecurity/notification-laravel
包简介
Laravel client for Stellar Notification API
README 文档
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) );
统计信息
- 总下载量: 159
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-26