nourallah/onesignalnotifier

generate and verifiy OneSignalNotifier with limit

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/nourallah/onesignalnotifier

v1.0.1 2025-07-20 07:19 UTC

This package is auto-updated.

Last update: 2025-09-27 15:55:08 UTC


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');