nourallah/onesignalnotifier
最新稳定版本:v1.0.1
Composer 安装命令:
composer require nourallah/onesignalnotifier
包简介
generate and verifiy OneSignalNotifier with limit
README 文档
README
A simple Laravel package to send OneSignal notifications.
Installation
composer require nourallah/onesignalnotifier ## Configuration Add your OneSignal credentials to your .env file: ONESIGNAL_APP_ID=your-app-id ONESIGNAL_REST_API_KEY=your-rest-api-key ## Usage use Nourallah\OneSignalNotifier\OneSignalNotifier; $notifier = new OneSignalNotifier(); $notifier->sendToAll('Hello everyone!'); Send notification with Arabic and English $notifier->sendToAll([ 'en' => 'Hello everyone', 'ar' => 'مرحبا بالجميع', ]); # Send notification to a specific user $notifier->sendToUser('player-id-123', 'You have a new message');
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-12